Rename static initializer defines for opaque structures so that the
POSIX specified names can be declared in pthread.h.
This commit is contained in:
parent
fc00c3e358
commit
c34d8f0bcb
@ -108,7 +108,7 @@ struct pthread_mutex {
|
||||
/*
|
||||
* Static mutex initialization values.
|
||||
*/
|
||||
#define PTHREAD_MUTEX_INITIALIZER \
|
||||
#define PTHREAD_MUTEX_STATIC_INITIALIZER \
|
||||
{ MUTEX_TYPE_FAST, PTHREAD_QUEUE_INITIALIZER, \
|
||||
NULL, { NULL }, MUTEX_FLAGS_INITED }
|
||||
|
||||
@ -147,7 +147,7 @@ struct pthread_cond_attr {
|
||||
/*
|
||||
* Static cond initialization values.
|
||||
*/
|
||||
#define PTHREAD_COND_INITIALIZER \
|
||||
#define PTHREAD_COND_STATIC_INITIALIZER \
|
||||
{ COND_TYPE_FAST, PTHREAD_QUEUE_INITIALIZER, NULL, COND_FLAGS_INITED }
|
||||
|
||||
/*
|
||||
|
@ -108,7 +108,7 @@ struct pthread_mutex {
|
||||
/*
|
||||
* Static mutex initialization values.
|
||||
*/
|
||||
#define PTHREAD_MUTEX_INITIALIZER \
|
||||
#define PTHREAD_MUTEX_STATIC_INITIALIZER \
|
||||
{ MUTEX_TYPE_FAST, PTHREAD_QUEUE_INITIALIZER, \
|
||||
NULL, { NULL }, MUTEX_FLAGS_INITED }
|
||||
|
||||
@ -147,7 +147,7 @@ struct pthread_cond_attr {
|
||||
/*
|
||||
* Static cond initialization values.
|
||||
*/
|
||||
#define PTHREAD_COND_INITIALIZER \
|
||||
#define PTHREAD_COND_STATIC_INITIALIZER \
|
||||
{ COND_TYPE_FAST, PTHREAD_QUEUE_INITIALIZER, NULL, COND_FLAGS_INITED }
|
||||
|
||||
/*
|
||||
|
@ -108,7 +108,7 @@ struct pthread_mutex {
|
||||
/*
|
||||
* Static mutex initialization values.
|
||||
*/
|
||||
#define PTHREAD_MUTEX_INITIALIZER \
|
||||
#define PTHREAD_MUTEX_STATIC_INITIALIZER \
|
||||
{ MUTEX_TYPE_FAST, PTHREAD_QUEUE_INITIALIZER, \
|
||||
NULL, { NULL }, MUTEX_FLAGS_INITED }
|
||||
|
||||
@ -147,7 +147,7 @@ struct pthread_cond_attr {
|
||||
/*
|
||||
* Static cond initialization values.
|
||||
*/
|
||||
#define PTHREAD_COND_INITIALIZER \
|
||||
#define PTHREAD_COND_STATIC_INITIALIZER \
|
||||
{ COND_TYPE_FAST, PTHREAD_QUEUE_INITIALIZER, NULL, COND_FLAGS_INITED }
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user