From edb4b26f501b07a4b83bf3fa008ebd518d7a4a9d Mon Sep 17 00:00:00 2001 From: John Birrell Date: Sat, 4 Apr 1998 10:59:42 +0000 Subject: Add static initializer defines as specified by POSIX. --- include/pthread.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/pthread.h b/include/pthread.h index b1966623daaf..701328b0a6b7 100644 --- a/include/pthread.h +++ b/include/pthread.h @@ -1,6 +1,6 @@ /* * Copyright (c) 1993, 1994 by Chris Provenzano, proven@mit.edu - * Copyright (c) 1995 by John Birrell + * Copyright (c) 1995-1998 by John Birrell * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -138,7 +138,13 @@ struct pthread_once { #define PTHREAD_ONCE_INIT { PTHREAD_NEEDS_INIT, NULL } /* - * Default attribute arguments. + * Static initialization values. + */ +#define PTHREAD_MUTEX_INITIALIZER NULL +#define PTHREAD_COND_INITIALIZER NULL + +/* + * Default attribute arguments (draft 4, deprecated). */ #ifndef PTHREAD_KERNEL #define pthread_condattr_default NULL -- cgit v1.3