diff options
| author | Julian Elischer <julian@FreeBSD.org> | 1997-02-05 23:26:09 +0000 |
|---|---|---|
| committer | Julian Elischer <julian@FreeBSD.org> | 1997-02-05 23:26:09 +0000 |
| commit | c840cec7c5df4547d37d9ca025553099b834c1aa (patch) | |
| tree | b2e6d3017e236268263978b585f2150cd10b1689 /include/pthread.h | |
| parent | 3b576b3e5eac153732d10d222cc023a02adc3db7 (diff) | |
Notes
Diffstat (limited to 'include/pthread.h')
| -rw-r--r-- | include/pthread.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/include/pthread.h b/include/pthread.h index 0b01d8e9d485..8baae8c625d8 100644 --- a/include/pthread.h +++ b/include/pthread.h @@ -67,6 +67,19 @@ #define _POSIX_THREAD_SAFE_FUNCTIONS /* + * Flags for threads and thread attributes. + */ +#define PTHREAD_DETACHED 0x1 +#define PTHREAD_SCOPE_SYSTEM 0x2 +#define PTHREAD_INHERIT_SCHED 0x4 +#define PTHREAD_NOFLOAT 0x8 + +#define PTHREAD_CREATE_DETACHED PTHREAD_DETACHED +#define PTHREAD_CREATE_JOINABLE 0 +#define PTHREAD_SCOPE_PROCESS 0 +#define PTHREAD_EXPLICIT_SCHED 0 + +/* * Forward structure definitions. * * These are mostly opaque to the user. @@ -127,8 +140,8 @@ struct pthread_once { /* * Default attribute arguments. */ -#define pthread_condattr_default NULL #ifndef PTHREAD_KERNEL +#define pthread_condattr_default NULL #define pthread_mutexattr_default NULL #define pthread_attr_default NULL #endif @@ -162,7 +175,7 @@ int pthread_attr_setstacksize __P((pthread_attr_t *, size_t)); int pthread_attr_setstackaddr __P((pthread_attr_t *, void *)); int pthread_attr_setdetachstate __P((pthread_attr_t *, int)); void pthread_cleanup_pop __P((int execute)); -int pthread_cleanup_push __P((void (*routine) (void *), +void pthread_cleanup_push __P((void (*routine) (void *), void *routine_arg)); int pthread_condattr_destroy __P((pthread_condattr_t *attr)); int pthread_condattr_init __P((pthread_condattr_t *attr)); |
