summaryrefslogtreecommitdiffstats
path: root/lib/libthr/thread/thr_umtx.c
Commit message (Collapse)AuthorAgeFilesLines
* Check environment variable PTHREAD_ADAPTIVE_SPIN, if it is set, usedavidxu2006-12-201-0/+1
| | | | it as a default spin cycle count.
* Correctly check failed syscall.davidxu2006-12-121-10/+10
|
* Move checking for c_has_waiters into low level _thr_ucond_signal anddavidxu2006-12-121-0/+4
| | | | | | | _thr_ucond_broadcast, clear condition variable pointer in cancellation info after returing from _thr_ucond_wait, since kernel has already dropped the internal lock, so we don't need to unlock it in cancellation handler again.
* Add _thr_ucond_init().davidxu2006-12-051-0/+6
|
* Fix typo, I was using a wrong header file, and the typo is not detecteddavidxu2006-12-041-1/+1
| | | | by compiler.
* Use kernel provided userspace condition variable to implement pthreaddavidxu2006-12-041-0/+33
| | | | condition variable.
* o Make _thr_umutex_init a function.davidxu2006-10-131-6/+14
| | | | | | o Eliminate unused parameter for some functions. o Convert type of first parameter to void * for _thr_umtx_wait and _thr_umtx_wake.
* Replace internal usage of struct umtx with umutex which can supportsdavidxu2006-09-061-31/+0
| | | | real-time if we want, no functionality is changed.
* Add umutex APIs.davidxu2006-08-281-0/+46
|
* WARNS level 4 cleanup.davidxu2006-04-041-7/+10
|
* Import my recent 1:1 threading working. some features improved includes:davidxu2005-04-021-0/+80
1. fast simple type mutex. 2. __thread tls works. 3. asynchronous cancellation works ( using signal ). 4. thread synchronization is fully based on umtx, mainly, condition variable and other synchronization objects were rewritten by using umtx directly. those objects can be shared between processes via shared memory, it has to change ABI which does not happen yet. 5. default stack size is increased to 1M on 32 bits platform, 2M for 64 bits platform. As the result, some mysql super-smack benchmarks show performance is improved massivly. Okayed by: jeff, mtm, rwatson, scottl
OpenPOWER on IntegriCloud