|
Lines 137-145
void g_thread_init_with_errorcheck_mu
Link Here
|
| 137 |
/* internal function for fallback static mutex implementation */ |
137 |
/* internal function for fallback static mutex implementation */ |
| 138 |
GMutex* g_static_mutex_get_mutex_impl (GMutex **mutex); |
138 |
GMutex* g_static_mutex_get_mutex_impl (GMutex **mutex); |
| 139 |
|
139 |
|
| 140 |
#define g_static_mutex_get_mutex_impl_shortcut(mutex) \ |
140 |
static inline GMutex *g_static_mutex_get_mutex_impl_shortcut(GMutex **mutex) |
| 141 |
(g_atomic_pointer_get (mutex) ? *(mutex) : \ |
141 |
{ |
| 142 |
g_static_mutex_get_mutex_impl (mutex)) |
142 |
gpointer * _mutex = (gpointer *) mutex; |
|
|
143 |
return g_atomic_pointer_get (_mutex) ? *(mutex) : |
| 144 |
g_static_mutex_get_mutex_impl (mutex); |
| 145 |
} |
| 143 |
|
146 |
|
| 144 |
/* shorthands for conditional and unconditional function calls */ |
147 |
/* shorthands for conditional and unconditional function calls */ |
| 145 |
|
148 |
|