mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 19:36:18 +01:00
Revert "gthread: G_STATIC_MUTEX_INIT: Fix this for the non-win32 case."
This reverts commit 52fd106724
.
This commit is contained in:
parent
52fd106724
commit
4c038429b1
@ -124,15 +124,7 @@ void g_thread_foreach (GFunc thread_func,
|
||||
#endif
|
||||
|
||||
#define g_static_mutex_get_mutex g_static_mutex_get_mutex_impl
|
||||
|
||||
#ifndef G_OS_WIN32
|
||||
/* The use of PTHREAD_MUTEX_INITIALIZER is arbitrary.
|
||||
* but that struct field is unused anyway. */
|
||||
#define G_STATIC_MUTEX_INIT { NULL, PTHREAD_MUTEX_INITIALIZER }
|
||||
#else
|
||||
#define G_STATIC_MUTEX_INIT { NULL }
|
||||
#endif
|
||||
|
||||
typedef struct
|
||||
{
|
||||
GMutex *mutex;
|
||||
|
Loading…
Reference in New Issue
Block a user