All functions returning int should return zero on success or the error
number. If the operation is not supported, -1 is returned.
- If the following are also defined, you should
+ If the following are also defined, you should
#define __GTHREADS_CXX0X 1
- to enable the c++0x thread library.
-
+ to enable the c++0x thread library.
+
Types:
__gthread_t
__gthread_time_t
Interface:
- int __gthread_create (__gthread_t *thread, void *(*func) (void*),
+ int __gthread_create (__gthread_t *thread, void *(*func) (void*),
void *args);
int __gthread_join (__gthread_t thread, void **value_ptr);
int __gthread_detach (__gthread_t thread);
const __gthread_time_t *abs_timeout);
int __gthread_recursive_mutex_timedlock (__gthread_recursive_mutex_t *m,
const __gthread_time_t *abs_time);
-
+
int __gthread_cond_signal (__gthread_cond_t *cond);
- int __gthread_cond_timedwait (__gthread_cond_t *cond,
+ int __gthread_cond_timedwait (__gthread_cond_t *cond,
__gthread_mutex_t *mutex,
const __gthread_time_t *abs_timeout);
int __gthread_cond_timedwait_recursive (__gthread_cond_t *cond,
POSIX/Unix95 threads with -D_PTHREADS95
DCE threads with -D_DCE_THREADS
Solaris/UI threads with -D_SOLARIS_THREADS
-
+
*/
/* Check first for thread specific defines. */