diff options
author | bje <bje> | 1998-07-12 15:07:03 +0000 |
---|---|---|
committer | bje <bje> | 1998-07-12 15:07:03 +0000 |
commit | fcffe39c2af8374e7c994dac0b6bc0719c6a561f (patch) | |
tree | 79605825ec2810fb301ffc23ffd9eefb6eecd010 /pthread.h | |
parent | f8bf798c8c1beccb219f295ef4c42846b65681c7 (diff) |
1998-07-13 Ben Elliston <bje@cygnus.com>
* pthread.h (pthread_condattr_t): Define this type.
(pthread_condattr_init): Likewise.
(pthread_condattr_destroy): Likewise.
(pthread_condattr_setpshared): Likewise.
(pthread_condattr_getpshared): Likewise.
Diffstat (limited to 'pthread.h')
-rw-r--r-- | pthread.h | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -27,6 +27,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. typedef HANDLE pthread_t; typedef HANDLE pthread_mutex_t; + +typedef struct { void * ptr; } pthread_condattr_t; typedef struct { void * ptr; } pthread_mutexattr_t; #ifdef __cplusplus @@ -46,6 +48,18 @@ int pthread_equal(pthread_t t1, pthread_t t2); int pthread_join(pthread_t thread, void ** valueptr); +/* Functions for manipulating cond. var. attribute objects. */ + +int pthread_condattr_init(pthread_condattr_t *attr); + +int pthread_condatr_setpshared(pthread_condattr_t *attr, + int pshared); + +int pthread_condattr_getpshared(pthread_condattr_t *attr, + int *pshared); + +int pthread_condattr_destroy(pthread_condattr_t *attr); + /* Functions for manipulating mutex attribute objects. */ int pthread_mutexattr_init(pthread_mutexattr_t *attr); |