summaryrefslogtreecommitdiff
path: root/include/threadlib.h
AgeCommit message (Collapse)Author
2003-01-19Add some threadlib stubs that are used by X:thorpej
* thr_create() (stub in libc aborts) * thr_exit() (stub in libc calls exit()) * thr_yield() (stub in libc does nothing) Also make the libc thr_self() stub not abort. XXX Should we add thrattr_*() stubs for setting the detach-state?
2003-01-19* Wrap decls in __BEGIN_DECLS/__END_DECLS.thorpej
* Add a thr_enabled() which returns the value of libc's __isthreaded variable, indicating whether or not threads are actually enabled.
2003-01-19Add mutexattr_init(), mutexattr_destroy(), and mutexattr_settype() (recursivethorpej
mutexes are used by the X libraries).
2003-01-19Expose libc's thread stubs, which get magically turned into real pthreadthorpej
calls when the pthread library is linked in. Simplifies making other libraries (such as X's) thread-safe.