summaryrefslogtreecommitdiffstats
path: root/lib/libthr/thread/thr_clean.c
Commit message (Collapse)AuthorAgeFilesLines
* MFC r281857:pfg2015-04-291-1/+1
| | | | | | | | _pthread_cleanup_push: fix allocator sizeof operand mismatch Same fix appears to be in DragonFly's libthread_xu. Found by: Clang Static Analyzer
* Only access unwind_disabled when _PTHREAD_FORCED_UNWIND is defined.davidxu2010-09-251-1/+2
|
* Because old _pthread_cleanup_push/pop do not have frame address,davidxu2010-09-251-8/+1
| | | | | | it is incompatible with stack unwinding code, if they are invoked, disable stack unwinding for current thread, and when thread is exiting, print a warning message.
* add code to support stack unwinding when thread exits. note that onlydavidxu2010-09-151-0/+8
| | | | | | defer-mode cancellation works, asynchrnous mode does not work because it lacks of libuwind's support. stack unwinding is not enabled unless LIBTHR_UNWIND_STACK is defined in Makefile.
* Make pthread_cleanup_push() and pthread_cleanup_pop() as a pair of macros,davidxu2008-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@
* Remove 3rd clause, renumber, ok per emailimp2007-01-121-4/+1
|
* WARNS level 4 cleanup.davidxu2006-04-041-0/+2
|
* Import my recent 1:1 threading working. some features improved includes:davidxu2005-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
* - Define curthread as _get_curthread() and remove all direct calls tojeff2003-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().
* - Add libthr but don't hook it up to the regular build yet. This is anjeff2003-04-011-0/+72
adaptation of libc_r for the thr system call interface. This is beta quality code.
OpenPOWER on IntegriCloud