pthread.h (19637) | pthread.h (22315) |
---|---|
1/* 2 * Copyright (c) 1993, 1994 by Chris Provenzano, proven@mit.edu 3 * Copyright (c) 1995 by John Birrell <jb@cimlogic.com.au> 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 53 unchanged lines hidden (view full) --- 62#define _POSIX_THREAD_ATTR_STACKSIZE 63#define _POSIX_THREAD_PRIORITY_SCHEDULING 64/* #define _POSIX_THREAD_PRIO_INHERIT */ 65/* #define _POSIX_THREAD_PRIO_PROTECT */ 66/* #define _POSIX_THREAD_PROCESS_SHARED */ 67#define _POSIX_THREAD_SAFE_FUNCTIONS 68 69/* | 1/* 2 * Copyright (c) 1993, 1994 by Chris Provenzano, proven@mit.edu 3 * Copyright (c) 1995 by John Birrell <jb@cimlogic.com.au> 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 53 unchanged lines hidden (view full) --- 62#define _POSIX_THREAD_ATTR_STACKSIZE 63#define _POSIX_THREAD_PRIORITY_SCHEDULING 64/* #define _POSIX_THREAD_PRIO_INHERIT */ 65/* #define _POSIX_THREAD_PRIO_PROTECT */ 66/* #define _POSIX_THREAD_PROCESS_SHARED */ 67#define _POSIX_THREAD_SAFE_FUNCTIONS 68 69/* |
70 * Flags for threads and thread attributes. 71 */ 72#define PTHREAD_DETACHED 0x1 73#define PTHREAD_SCOPE_SYSTEM 0x2 74#define PTHREAD_INHERIT_SCHED 0x4 75#define PTHREAD_NOFLOAT 0x8 76 77#define PTHREAD_CREATE_DETACHED PTHREAD_DETACHED 78#define PTHREAD_CREATE_JOINABLE 0 79#define PTHREAD_SCOPE_PROCESS 0 80#define PTHREAD_EXPLICIT_SCHED 0 81 82/* |
|
70 * Forward structure definitions. 71 * 72 * These are mostly opaque to the user. 73 */ 74struct pthread; 75struct pthread_attr; 76struct pthread_cond; 77struct pthread_cond_attr; --- 44 unchanged lines hidden (view full) --- 122/* 123 * Static once initialization values. 124 */ 125#define PTHREAD_ONCE_INIT { PTHREAD_NEEDS_INIT, NULL } 126 127/* 128 * Default attribute arguments. 129 */ | 83 * Forward structure definitions. 84 * 85 * These are mostly opaque to the user. 86 */ 87struct pthread; 88struct pthread_attr; 89struct pthread_cond; 90struct pthread_cond_attr; --- 44 unchanged lines hidden (view full) --- 135/* 136 * Static once initialization values. 137 */ 138#define PTHREAD_ONCE_INIT { PTHREAD_NEEDS_INIT, NULL } 139 140/* 141 * Default attribute arguments. 142 */ |
130#define pthread_condattr_default NULL | |
131#ifndef PTHREAD_KERNEL | 143#ifndef PTHREAD_KERNEL |
144#define pthread_condattr_default NULL |
|
132#define pthread_mutexattr_default NULL 133#define pthread_attr_default NULL 134#endif 135 136enum pthread_mutextype { 137 MUTEX_TYPE_FAST = 1, 138 MUTEX_TYPE_COUNTING_FAST = 2, /* Recursive */ 139 MUTEX_TYPE_MAX --- 17 unchanged lines hidden (view full) --- 157int pthread_attr_setschedparam __P((pthread_attr_t *, 158 struct sched_param *)); 159int pthread_attr_setschedpolicy __P((pthread_attr_t *, int)); 160int pthread_attr_setscope __P((pthread_attr_t *, int)); 161int pthread_attr_setstacksize __P((pthread_attr_t *, size_t)); 162int pthread_attr_setstackaddr __P((pthread_attr_t *, void *)); 163int pthread_attr_setdetachstate __P((pthread_attr_t *, int)); 164void pthread_cleanup_pop __P((int execute)); | 145#define pthread_mutexattr_default NULL 146#define pthread_attr_default NULL 147#endif 148 149enum pthread_mutextype { 150 MUTEX_TYPE_FAST = 1, 151 MUTEX_TYPE_COUNTING_FAST = 2, /* Recursive */ 152 MUTEX_TYPE_MAX --- 17 unchanged lines hidden (view full) --- 170int pthread_attr_setschedparam __P((pthread_attr_t *, 171 struct sched_param *)); 172int pthread_attr_setschedpolicy __P((pthread_attr_t *, int)); 173int pthread_attr_setscope __P((pthread_attr_t *, int)); 174int pthread_attr_setstacksize __P((pthread_attr_t *, size_t)); 175int pthread_attr_setstackaddr __P((pthread_attr_t *, void *)); 176int pthread_attr_setdetachstate __P((pthread_attr_t *, int)); 177void pthread_cleanup_pop __P((int execute)); |
165int pthread_cleanup_push __P((void (*routine) (void *), | 178void pthread_cleanup_push __P((void (*routine) (void *), |
166 void *routine_arg)); 167int pthread_condattr_destroy __P((pthread_condattr_t *attr)); 168int pthread_condattr_init __P((pthread_condattr_t *attr)); 169int pthread_condattr_getpshared __P((pthread_condattr_t *attr, 170 int *pshared)); 171int pthread_condattr_setpshared __P((pthread_condattr_t *attr, 172 int pshared)); 173int pthread_cond_broadcast __P((pthread_cond_t *)); --- 64 unchanged lines hidden --- | 179 void *routine_arg)); 180int pthread_condattr_destroy __P((pthread_condattr_t *attr)); 181int pthread_condattr_init __P((pthread_condattr_t *attr)); 182int pthread_condattr_getpshared __P((pthread_condattr_t *attr, 183 int *pshared)); 184int pthread_condattr_setpshared __P((pthread_condattr_t *attr, 185 int pshared)); 186int pthread_cond_broadcast __P((pthread_cond_t *)); --- 64 unchanged lines hidden --- |