Commit Graph

5 Commits

Author SHA1 Message Date
nathanw ddd6fd5414 Add setcancelstate stub. 2003-07-19 05:05:28 +00:00
thorpej 7dc01dbfab Add some threadlib stubs that are used by X:
* 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 21:58:21 +00:00
thorpej 0c8ccd6d1f * Wrap decls in __BEGIN_DECLS/__END_DECLS.
* Add a thr_enabled() which returns the value of libc's __isthreaded
  variable, indicating whether or not threads are actually enabled.
2003-01-19 21:06:02 +00:00
thorpej 592409d356 Add mutexattr_init(), mutexattr_destroy(), and mutexattr_settype() (recursive
mutexes are used by the X libraries).
2003-01-19 20:46:11 +00:00
thorpej ba54189cb1 Expose libc's thread stubs, which get magically turned into real pthread
calls when the pthread library is linked in.  Simplifies making other
libraries (such as X's) thread-safe.
2003-01-19 19:24:39 +00:00