mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-29 12:24:12 +02:00
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:
@@ -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};
|
||||
|
Reference in New Issue
Block a user