Changeset View
Changeset View
Standalone View
Standalone View
lib/libthr/thread/thr_cond.c
Show All 37 Lines | |||||
#include <errno.h> | #include <errno.h> | ||||
#include <string.h> | #include <string.h> | ||||
#include <pthread.h> | #include <pthread.h> | ||||
#include <limits.h> | #include <limits.h> | ||||
#include "un-namespace.h" | #include "un-namespace.h" | ||||
#include "thr_private.h" | #include "thr_private.h" | ||||
_Static_assert(sizeof(struct pthread_cond) <= PAGE_SIZE, | _Static_assert(sizeof(struct pthread_cond) <= THR_PAGE_SIZE_MIN, | ||||
"pthread_cond too large"); | "pthread_cond too large"); | ||||
/* | /* | ||||
* Prototypes | * Prototypes | ||||
*/ | */ | ||||
int __pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex, | int __pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex, | ||||
const struct timespec * abstime); | const struct timespec * abstime); | ||||
static int cond_init(pthread_cond_t *cond, const pthread_condattr_t *attr); | static int cond_init(pthread_cond_t *cond, const pthread_condattr_t *attr); | ||||
▲ Show 20 Lines • Show All 505 Lines • Show Last 20 Lines |