| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
time in kernel(avoid VM lookup).
|
|
|
|
| |
check waiter and semphore counter to see if we may wake up next thread.
|
| |
|
| |
|
|
|
|
|
| |
this should reduce the chance having to do a syscall when there is no
waiter in the semaphore.
|
|
|
|
|
| |
_thr_umtx_wait_uint() for umtx operation UMTX_OP_WAIT_UINT, use the
function in semaphore operations, this fixed compiler warnings.
|
|
|
|
| |
reduce overheads of cancellation points.
|
|
|
|
| |
real-time if we want, no functionality is changed.
|
| |
|
|
|
|
| |
while here.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
|
|
|
| |
_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().
|
|
adaptation of libc_r for the thr system call interface. This is beta
quality code.
|