/* If this file is compiled with threads support, it must
#define __GTHREADS 1
to indicate that threads support is present. Also it has define
- function
+ function
int __gthread_active_p ()
that returns 1 if thread system is active, 0 if not.
to initialize __gthread_mutex_t to get a fast
non-recursive mutex.
__GTHREAD_MUTEX_INIT_FUNCTION
- some systems can't initalize a mutex without a
+ some systems can't initialize a mutex without a
function call. On such systems, define this to a
function which looks like this:
void __GTHREAD_MUTEX_INIT_FUNCTION (__gthread_mutex_t *)
int __gthread_key_create (__gthread_key_t *keyp, void (*dtor) (void *))
int __gthread_key_delete (__gthread_key_t key)
- int __gthread_key_dtor (__gthread_key_t key, void *ptr)
-
void *__gthread_getspecific (__gthread_key_t key)
int __gthread_setspecific (__gthread_key_t key, const void *ptr)
Solaris/UI threads with -D_SOLARIS_THREADS
*/
-/* Check first for thread specific defines. */
+/* Check first for thread specific defines. */
#if _PTHREADS
#include "gthr-posix.h"
#elif _DCE_THREADS
#elif _SOLARIS_THREADS
#include "gthr-solaris.h"
-/* Include GTHREAD_FILE if one is defined. */
+/* Include GTHREAD_FILE if one is defined. */
#elif defined(HAVE_GTHR_DEFAULT)
#if SUPPORTS_WEAK
#ifndef GTHREAD_USE_WEAK
#endif
#include "gthr-default.h"
-/* Fallback to single thread definitions. */
+/* Fallback to single thread definitions. */
#else
#include "gthr-single.h"
#endif