kqueue: Reduce G_GNUC_INTERNAL + G_LOCK abuse

The kqueue file monitoring backend was misusing G_GNUC_INTERNAL for want
of 'static' in a couple of places and also using it to declare a lock
that was never used at all.

Fix those up.
This commit is contained in:
Ryan Lortie
2013-01-13 23:43:44 -05:00
parent 64e1a9ca50
commit 59e46c4928
3 changed files with 4 additions and 6 deletions

View File

@@ -43,10 +43,8 @@
static gboolean kh_debug_enabled = FALSE;
#define KH_W if (kh_debug_enabled) g_warning
G_GNUC_INTERNAL G_LOCK_DEFINE (kqueue_lock);
static GHashTable *subs_hash_table = NULL;
G_GNUC_INTERNAL G_LOCK_DEFINE (hash_lock);
G_LOCK_DEFINE_STATIC (hash_lock);
static int kqueue_descriptor = -1;
static int kqueue_socket_pair[] = {-1, -1};