Mike Makonnen
659045ffbf
Change all instances of THR_LOCK/UNLOCK, etc to UMTX_*.
...
It is a more acurate description of the locks they
operate on.
2003-07-06 10:18:48 +00:00
Mike Makonnen
dbc6f4c07d
Sweep through pthread locking and use the new locking primitives for
...
libthr.
2003-06-29 23:51:04 +00:00
Mike Makonnen
cff6c3cab1
Unwind the _giant_mutex from pthread_detach(). When detaching a joiner thread
...
it's important the correct lock order is observed: lock first the joined and
then the joiner.
2003-06-02 11:01:00 +00:00
Mike Makonnen
7d9d7ca2ed
Make WARNS2 clean. The fixes mostly included:
...
o removed unused variables
o explicit inclusion of header files
o prototypes for externally defined functions
Approved by: re/blanket libthr
2003-05-23 09:48:20 +00:00
Jeff Roberson
26f52e2f8b
- Define curthread as _get_curthread() and remove all direct calls to
...
_get_curthread(). This is similar to the kernel's curthread. Doing
this saves stack overhead and is more convenient to the programmer.
- Pass the pointer to the newly created thread to _thread_init().
- Remove _get_curthread_slow().
2003-04-02 03:05:39 +00:00
Jeff Roberson
bb535300dd
- Add libthr but don't hook it up to the regular build yet. This is an
...
adaptation of libc_r for the thr system call interface. This is beta
quality code.
2003-04-01 03:46:29 +00:00