Lines Matching defs:__gthrw_

68 # define __gthrw_(name) __gthrw_ ## name
71 # define __gthrw_(name) name
75 #define __gthrw(name) __gthrw2(__gthrw_ ## name,name,name)
81 #define __gthrw3(name) __gthrw2(__gthrw_ ## name, __ ## name, name)
184 if (__gthrw_(pthread_once))
188 __gthrw_(pthread_mutex_lock) (&__gthread_active_mutex);
189 __gthrw_(pthread_once) (&__gthread_active_once, __gthread_trigger);
190 __gthrw_(pthread_mutex_unlock) (&__gthread_active_mutex);
209 = __extension__ (void *) &__gthrw_(pthread_cancel);
250 if (__gthrw_(pthread_key_create) (&_objc_thread_storage, NULL) == 0)
255 if (__gthrw_(pthread_attr_init) (&_objc_thread_attribs) == 0
256 && __gthrw_(pthread_attr_setdetachstate) (&_objc_thread_attribs,
270 && __gthrw_(pthread_key_delete) (_objc_thread_storage) == 0
271 && __gthrw_(pthread_attr_destroy) (&_objc_thread_attribs) == 0)
289 if (!(__gthrw_(pthread_create) (&new_thread_handle, NULL, (void *) func, arg)))
307 pthread_t thread_id = __gthrw_(pthread_self) ();
312 if (__gthrw_(pthread_getschedparam) (thread_id, &policy, &params) == 0)
314 if ((priority_max = __gthrw_(sched_get_priority_max) (policy)) == -1)
317 if ((priority_min = __gthrw_(sched_get_priority_min) (policy)) == -1)
331 if (__gthrw_(pthread_setschedparam) (thread_id, policy, &params) == 0)
351 if (__gthrw_(pthread_getschedparam) (__gthrw_(pthread_self) (), &policy, &params) == 0)
367 __gthrw_(sched_yield) ();
376 __gthrw_(pthread_exit) (&__objc_thread_exit_status);
387 return (objc_thread_t) __gthrw_(pthread_self) ();
397 return __gthrw_(pthread_setspecific) (_objc_thread_storage, value);
410 return __gthrw_(pthread_getspecific) (_objc_thread_storage);
425 if (__gthrw_(pthread_mutex_init) ((pthread_mutex_t *) mutex->backend, NULL))
446 * for __gthrw_(pthread_mutex_destroy) to work.
451 count = __gthrw_(pthread_mutex_unlock) ((pthread_mutex_t *) mutex->backend);
457 if (__gthrw_(pthread_mutex_destroy) ((pthread_mutex_t *) mutex->backend))
471 && __gthrw_(pthread_mutex_lock) ((pthread_mutex_t *) mutex->backend) != 0)
484 && __gthrw_(pthread_mutex_trylock) ((pthread_mutex_t *) mutex->backend) != 0)
497 && __gthrw_(pthread_mutex_unlock) ((pthread_mutex_t *) mutex->backend) != 0)
515 if (__gthrw_(pthread_cond_init) ((pthread_cond_t *) condition->backend, NULL))
532 if (__gthrw_(pthread_cond_destroy) ((pthread_cond_t *) condition->backend))
546 return __gthrw_(pthread_cond_wait) ((pthread_cond_t *) condition->backend,
557 return __gthrw_(pthread_cond_broadcast) ((pthread_cond_t *) condition->backend);
567 return __gthrw_(pthread_cond_signal) ((pthread_cond_t *) condition->backend);
578 return __gthrw_(pthread_once) (once, func);
586 return __gthrw_(pthread_key_create) (key, dtor);
592 return __gthrw_(pthread_key_delete) (key);
598 return __gthrw_(pthread_getspecific) (key);
604 return __gthrw_(pthread_setspecific) (key, ptr);
611 return __gthrw_(pthread_mutex_lock) (mutex);
620 return __gthrw_(pthread_mutex_trylock) (mutex);
629 return __gthrw_(pthread_mutex_unlock) (mutex);
643 r = __gthrw_(pthread_mutexattr_init) (&attr);
645 r = __gthrw_(pthread_mutexattr_settype) (&attr, PTHREAD_MUTEX_RECURSIVE);
647 r = __gthrw_(pthread_mutex_init) (mutex, &attr);
649 r = __gthrw_(pthread_mutexattr_destroy) (&attr);