View | Details | Raw Unified | Return to bug 141215
Collapse All | Expand All

(-)glib/gthread.h (-3 / +6 lines)
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

Return to bug 141215