about summary refs log tree commit diff
path: root/src/thread/cnd_timedwait.c
Commit message (Collapse)AuthorAgeFilesLines
* for c11 mtx and cnd functions, use externally consistent type namesRich Felker2018-09-121-2/+3
| | | | | | | | | | | | | | | despite looking like undefined behavior, the affected code is correct both before and after this patch. the pairs mtx_t and pthread_mutex_t, and cnd_t and pthread_cond_t, are not mutually compatible within a single translation unit (because they are distinct untagged aggregate instances), but they are compatible with an object of either type from another translation unit (6.2.7 ΒΆ1), and therefore a given translation unit can choose which one it wants to use. in the interest of being able to move declarations out of source files to headers that facilitate checking, use the pthread type names in declaring the namespace-safe versions of the pthread functions and cast the argument pointer types when calling them.
* add C11 condition variable functionsJens Gustedt2014-09-061-0/+15
Because of the clear separation for private pthread_cond_t these interfaces are quite simple and direct.