summaryrefslogtreecommitdiff
path: root/lib/libthr/thread/thr_clean.c
Commit message (Collapse)AuthorAgeFilesLines
* Make pthread_cleanup_push() and pthread_cleanup_pop() as a pair of macros,David Xu2008-06-091-16/+39
| | | | | | | | | | use stack space to keep cleanup information, this eliminates overhead of calling malloc() and free() in thread library. Discussed on: thread@ Notes: svn path=/head/; revision=179662
* Remove 3rd clause, renumber, ok per emailWarner Losh2007-01-121-4/+1
| | | | Notes: svn path=/head/; revision=165967
* WARNS level 4 cleanup.David Xu2006-04-041-0/+2
| | | | Notes: svn path=/head/; revision=157457
* Import my recent 1:1 threading working. some features improved includes:David Xu2005-04-021-3/+9
| | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=144518
* - Define curthread as _get_curthread() and remove all direct calls toJeff Roberson2003-04-021-2/+0
| | | | | | | | | | _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(). Notes: svn path=/head/; revision=112965
* - Add libthr but don't hook it up to the regular build yet. This is anJeff Roberson2003-04-011-0/+72
adaptation of libc_r for the thr system call interface. This is beta quality code. Notes: svn path=/head/; revision=112918