diff options
author | portix <none@none> | 2013-02-04 21:54:05 +0100 |
---|---|---|
committer | portix <none@none> | 2013-02-04 21:54:05 +0100 |
commit | ab805229ea3768a02598c74257cc91d97d5e99f8 (patch) | |
tree | 38d0a448b4e4d61631d95abe591556bbb59f824c /src/editor.c | |
parent | 802485ca10f3624618a50a80dea66d02bc275917 (diff) | |
download | dwb-ab805229ea3768a02598c74257cc91d97d5e99f8.zip |
Use pthread mutex instead of GMutex, closing #273
Diffstat (limited to 'src/editor.c')
-rw-r--r-- | src/editor.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/editor.c b/src/editor.c index cdf1fff7..4ac8045e 100644 --- a/src/editor.c +++ b/src/editor.c @@ -30,18 +30,18 @@ typedef struct _EditorInfo { char *tagname; } EditorInfo; -GMutex s_disconnect_mutex; +pthread_mutex_t s_disconnect_mutex = PTHREAD_MUTEX_INITIALIZER; static void disconnect_navigation(GList *gl) { - g_mutex_lock(&s_disconnect_mutex); + pthread_mutex_lock(&s_disconnect_mutex); if (VIEW(gl)->status->signals[SIG_EDITOR_NAVIGATION] != 0) { g_signal_handler_disconnect(VIEW(gl)->web, VIEW(gl)->status->signals[SIG_EDITOR_NAVIGATION]); VIEW(gl)->status->signals[SIG_EDITOR_NAVIGATION] = 0; } - g_mutex_unlock(&s_disconnect_mutex); + pthread_mutex_unlock(&s_disconnect_mutex); } /* dwb_editor_watch (GChildWatchFunc) {{{*/ |