summaryrefslogtreecommitdiffstats
path: root/lib/libthr/thread/thr_mutex.c
Commit message (Collapse)AuthorAgeFilesLines
* Make the mutex static initializers look more like the one formtm2003-05-291-25/+19
| | | | | | | | | condition variables. Cosmetic. Explicitly compare against PTHREAD_MUTEX_INITIALIZER. We shouldn't encourage calls to the mutex functions with null pointers to mutexes. Approved by: re/jhb
* Make WARNS2 clean. The fixes mostly included:mtm2003-05-231-2/+4
| | | | | | | | o removed unused variables o explicit inclusion of header files o prototypes for externally defined functions Approved by: re/blanket libthr
* Insert a debugging aid:mtm2003-05-211-1/+9
| | | | | | | | When in either the mutex or cond queue we notice that the thread is already on one of the queues, don't just simply abort(). Print out the thread's identifiers and what queue it was on. Approved by: markm/mentor, re/blanket libthr
* msg1mtm2003-05-121-263/+129
|
* o Correct a debug message that refered to the wrong functionmtm2003-05-061-1/+1
| | | | | | | o Remove an unncecesary if clause Approved by: markm (mentor)(implicit) Reviewd by: jeff
* - Define curthread as _get_curthread() and remove all direct calls tojeff2003-04-021-8/+5
| | | | | | | _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().
* - Restore old mutex code from libc_r. It is more standards compliant.jeff2003-04-011-199/+1328
| | | | | | | This was changed because originally we were blocking on the umtx and allowing the kernel to do the queueing. It was decided that the lib should queue and start the threads in the order it decides and the umtx code would just be used like spinlocks.
* - Add libthr but don't hook it up to the regular build yet. This is anjeff2003-04-011-0/+432
adaptation of libc_r for the thr system call interface. This is beta quality code.
OpenPOWER on IntegriCloud