Header refactoring: unify and de-catchall mutex module

This commit is contained in:
David Goldblatt
2017-05-23 12:28:19 -07:00
committed by David Goldblatt
parent 9f822a1fd7
commit 18ecbfa89e
34 changed files with 304 additions and 287 deletions

View File

@@ -10,11 +10,8 @@ struct tsd_init_block_s {
void *data;
};
/* Defined in tsd.c, to allow the mutex headers to have tsd dependencies. */
typedef struct tsd_init_head_s tsd_init_head_t;
struct tsd_init_head_s {
ql_head(tsd_init_block_t) blocks;
malloc_mutex_t lock;
};
typedef struct {
bool initialized;