Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Pass correct parameter size. | davidxu | 2006-09-05 | 1 | -2/+2 | |
| | ||||||
* | Remove unused file. | davidxu | 2006-08-29 | 1 | -59/+0 | |
| | ||||||
* | pthread_sigmask is in thr_sig.c, remove this file. | davidxu | 2006-08-28 | 1 | -52/+0 | |
| | ||||||
* | Kill unused files. | davidxu | 2006-08-28 | 2 | -187/+0 | |
| | ||||||
* | Use umutex APIs to implement pthread_mutex, member pp_mutexq is added | davidxu | 2006-08-28 | 4 | -73/+116 | |
| | | | | | | into pthread structure to keep track of locked PTHREAD_PRIO_PROTECT mutex, no real mutex code is changed, the mutex locking and unlocking code should has same performance as before. | |||||
* | Add umutex APIs. | davidxu | 2006-08-28 | 2 | -0/+92 | |
| | ||||||
* | Axe unused member field. | davidxu | 2006-08-08 | 2 | -12/+2 | |
| | ||||||
* | Get number of CPUs and ignore spin count on single processor machine. | davidxu | 2006-08-08 | 3 | -6/+15 | |
| | ||||||
* | 1. Don't override underscore version of aio_suspend(), system(), | davidxu | 2006-07-25 | 3 | -78/+169 | |
| | | | | | | | | | | wait(), waitpid() and usleep(), they are internal versions and should not be cancellation points. 2. Make wait3() as a cancellation point. 3. Move raise() and pause() into file thr_sig.c. 4. Add functions _sigsuspend, _sigwait, _sigtimedwait and _sigwaitinfo, remove SIGCANCEL bit in wait-set for those functions, the signal is used internally to implement thread cancellation. | |||||
* | Unexpand two TAILQ_FOREACH_SAFE cases. | delphij | 2006-07-17 | 2 | -4/+2 | |
| | | | | Ok'ed by: davidxu | |||||
* | Caching scheduling policy and priority in userland, a critical but baddly | davidxu | 2006-07-13 | 5 | -20/+50 | |
| | | | | | written application is frequently changing thread priority for SCHED_OTHER policy. | |||||
* | Use thr_setscheduler, thr_getscheduler and thr_setschedparam to implement | davidxu | 2006-07-13 | 4 | -26/+15 | |
| | | | | pthread functions. | |||||
* | Use kernel facilities to support real-time scheduling. | davidxu | 2006-07-12 | 7 | -124/+103 | |
| | ||||||
* | Remove unused member. | davidxu | 2006-06-03 | 1 | -1/+0 | |
| | ||||||
* | Remove unused member field m_queue. | davidxu | 2006-06-02 | 2 | -6/+1 | |
| | ||||||
* | Explicitly request pre-zeroed memory instead of memset'ing our | delphij | 2006-05-31 | 1 | -5/+1 | |
| | | | | | | own. Ok'ed by: davidxu | |||||
* | s/long/int. | davidxu | 2006-04-27 | 1 | -2/+2 | |
| | ||||||
* | - Use same priority range returned by kernel's sched_get_priority_min() | davidxu | 2006-04-27 | 6 | -55/+57 | |
| | | | | | and sched_get_priority_max() syscalls. - Remove unused fields from structure pthread_attr. | |||||
* | Remove multiple _get_curthread() calls. | davidxu | 2006-04-23 | 1 | -4/+1 | |
| | ||||||
* | Do not check validity of timeout if a mutex can be acquired immediately. | davidxu | 2006-04-08 | 3 | -80/+103 | |
| | | | | | Completly drop recursive mutex in pthread_cond_wait and restore recursive after resumption. Reorganize code to make gcc to generate better code. | |||||
* | WARNS level 4 cleanup. | davidxu | 2006-04-04 | 44 | -186/+244 | |
| | ||||||
* | Fix prototype mismatch. | des | 2006-03-28 | 1 | -1/+2 | |
| | ||||||
* | Remove priority mutex code because it does not work correctly, | davidxu | 2006-03-27 | 7 | -1199/+200 | |
| | | | | | | | | | to make it work, turnstile like mechanism to support priority propagating and other realtime scheduling options in kernel should be available to userland mutex, for the moment, I just want to make libthr be simple and efficient thread library. Discussed with: deischen, julian | |||||
* | Check cancellation state carefully to see we really need to call | davidxu | 2006-03-26 | 1 | -2/+5 | |
| | | | | _pthread_testcancel(). Preserve errno in _thr_suspend_check(). | |||||
* | Don't cancel thread if it is in critical region. | davidxu | 2006-03-25 | 1 | -1/+1 | |
| | ||||||
* | Only wake up writer if the lock is free. | davidxu | 2006-03-25 | 1 | -2/+2 | |
| | ||||||
* | Compile thr_rtld.c | davidxu | 2006-03-25 | 1 | -0/+1 | |
| | ||||||
* | Add locking support for rtld. | davidxu | 2006-03-25 | 4 | -4/+229 | |
| | ||||||
* | set an upper limit for thread structures which can be allocated. | davidxu | 2006-03-24 | 1 | -1/+12 | |
| | ||||||
* | Set default contention scope to system. | davidxu | 2006-03-20 | 1 | -1/+1 | |
| | ||||||
* | Remove mqueue and timer, now they are in librt. | davidxu | 2006-03-08 | 1 | -517/+0 | |
| | ||||||
* | Add some more pthread stubs so that librt can use them. | deischen | 2006-03-05 | 1 | -4/+35 | |
| | | | | | | | The thread jump table has been resorted, so you need to keep libc, libpthread, and libthr in sync. Submitted by: xu | |||||
* | Reimplement mutex_init to get rid of compile warning. | davidxu | 2006-02-28 | 1 | -88/+39 | |
| | ||||||
* | Disable POSIX SIGEV_THREAD notification support, soon we will have a common | davidxu | 2006-02-22 | 1 | -1/+0 | |
| | | | | library which can be reused both for libthr and libpthread. | |||||
* | Read cycle count before sending signal, this fixes a userland thread | davidxu | 2006-02-20 | 1 | -1/+1 | |
| | | | | | | suspension bug. MFC after: 3 days | |||||
* | Rework last change of pthread_once, create a function _thr_once_init to | davidxu | 2006-02-15 | 3 | -6/+10 | |
| | | | | reinitialize its internal locks. | |||||
* | After fork(), reinitialize internal locks for pthread_once(). | davidxu | 2006-02-15 | 3 | -11/+15 | |
| | ||||||
* | Now, thread name is stored in kernel, userland no longer has to keep it. | davidxu | 2006-02-05 | 3 | -7/+2 | |
| | ||||||
* | use syscall thr_set_name to implement pthread_set_name_np. | davidxu | 2006-02-05 | 1 | -9/+18 | |
| | ||||||
* | Add missing symbol pthread_set_name_np. | davidxu | 2006-01-23 | 1 | -0/+2 | |
| | ||||||
* | Eliminate unused code. | davidxu | 2006-01-16 | 1 | -7/+1 | |
| | ||||||
* | Enable mutex inheritance code in mutex_fork, I forgot to turn on it. | davidxu | 2006-01-14 | 1 | -1/+11 | |
| | | | | while here, add some comments about process shared mutex. | |||||
* | Increase the number of spinlocks, since libc's malloc implementation is | jasone | 2006-01-13 | 1 | -1/+1 | |
| | | | | | | about to significantly increase the number of spinlocks used. Approved by: markm (mentor) | |||||
* | In preparation for a new malloc implementation: | jasone | 2006-01-12 | 1 | -10/+4 | |
| | | | | | | | | | | | | | * Add posix_memalign(). * Move calloc() from calloc.c to malloc.c. Add a calloc() implementation in rtld-elf in order to make the loader happy (even though calloc() isn't used in rtld-elf). * Add _malloc_prefork() and _malloc_postfork(), and use them instead of directly manipulating __malloc_lock. Approved by: phk, markm (mentor) | |||||
* | Use macro STATIC_LIB_REQUIRE to declare a symbol should be linked into | davidxu | 2006-01-10 | 2 | -95/+74 | |
| | | | | static binary. | |||||
* | Rescue pthread_set_name_np for compatible reason, remove unused code. | davidxu | 2006-01-09 | 2 | -151/+10 | |
| | ||||||
* | Tweak macro THR_LOCK_RELEASE a bit for non-PTHREAD_INVARIANTS case. | davidxu | 2006-01-09 | 1 | -7/+14 | |
| | ||||||
* | Return real detached state. | davidxu | 2006-01-09 | 1 | -0/+2 | |
| | ||||||
* | Fix a bug recently introduced, the _thread_active_count should be | davidxu | 2006-01-08 | 1 | -0/+1 | |
| | | | | decreased if thread can not be created. | |||||
* | Allow background threads to be suspended. | davidxu | 2006-01-08 | 1 | -1/+4 | |
| |