Definition in file t2-mtx.c.
Go to the source code of this file.
Compounds | |
struct | dict |
Defines | |
#define | MAX_ENTRIES 100 |
Functions | |
int | compar (const void *x, const void *y) |
void * | sorter (void *arg) |
int | main (void) |
Variables | |
pthread_mutex_t | mtx = PTHREAD_MUTEX_INITIALIZER |
|
Definition at line 24 of file t2-mtx.c. Referenced by main(). |
|
Definition at line 34 of file t2-mtx.c. Referenced by sorter(). |
|
Definition at line 58 of file t2-mtx.c. References dict::d_entry, dict::d_issorted, dict::d_nentries, EC_CLEANUP_BGN, EC_CLEANUP_END, EC_FAIL, ec_null, ec_rv, errno, MAX_ENTRIES, mtx, pthread_create(), pthread_mutex_lock(), pthread_mutex_unlock(), and sorter(). |
|
Definition at line 39 of file t2-mtx.c. References compar(), dict::d_entry, dict::d_issorted, dict::d_nentries, EC_CLEANUP_BGN, EC_CLEANUP_END, ec_rv, exit(), mtx, pthread_mutex_lock(), pthread_mutex_unlock(), and sleep(). Referenced by main(). |
|
|