aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/thr.h
Commit message (Collapse)AuthorAgeFilesLines
* Make this file more C++ friendly.Warner Losh2010-04-201-1/+3
| | | | Notes: svn path=/head/; revision=206903
* Add thr_kill2 syscall which sends a signal to a thread in another process.David Xu2007-08-161-0/+13
| | | | | | | | Submitted by: Tijl Coosemans tijl at ulyssis dot org Approved by: re (kensmith) Notes: svn path=/head/; revision=171859
* - Remove unused variable from create_thread().John Baldwin2007-06-071-4/+1
| | | | | | | | - Move kern_thr_*() prototype to <sys/syscallsubr.h> where all the other kern_*() prototypes live. Notes: svn path=/head/; revision=170404
* Merge posix4/* into normal kernel hierarchy.Tom Rhodes2006-11-111-1/+1
| | | | | | | | Reviewed by: glanced at by jhb Approved by: silence on -arch@ and -standards@ Notes: svn path=/head/; revision=164184
* Add compatible code to let 32bit libthr work on 64bit kernel.David Xu2006-09-221-0/+4
| | | | Notes: svn path=/head/; revision=162551
* Replace system call thr_getscheduler, thr_setscheduler, thr_setschedparamDavid Xu2006-09-211-14/+2
| | | | | | | | with rtprio_thread, while rtprio system call is for process only, the new system call rtprio_thread is responsible for LWP. Notes: svn path=/head/; revision=162497
* Add syscalls thr_setscheduler, thr_getscheduler, and thr_setschedparam,David Xu2006-07-131-2/+9
| | | | | | | | | | | these syscalls are designed to set thread's scheduling parameters and policy, because each syscall contains a size parameter, it is possible to support future scheduling option, e.g SCHED_SPORADIC, this option needs other fields in structure sched_param, current they are not avaiblable. Notes: svn path=/head/; revision=160319
* Add POSIX scheduler parameters support to thr_new syscall, this permitsDavid Xu2006-07-111-1/+9
| | | | | | | privileged process to create realtime thread. Notes: svn path=/head/; revision=160254
* Implement thr_set_name to set a name for thread.David Xu2006-02-051-1/+1
| | | | | | | Reviewed by: julian Notes: svn path=/head/; revision=155327
* Add new syscall thr_new to create thread in atomic, it willDavid Xu2005-04-231-1/+18
| | | | | | | | | | inherit signal mask from parent thread, setup TLS and stack, and user entry address. Also support POSIX thread's PTHREAD_SCOPE_PROCESS and PTHREAD_SCOPE_SYSTEM, sysctl is also provided to control the scheduler scope. Notes: svn path=/head/; revision=145434
* /* -> /*- for license, minor formatting changesWarner Losh2005-01-071-1/+1
| | | | Notes: svn path=/head/; revision=139825
* Close a race between a thread exiting and the freeing of it's stack.Mike Makonnen2004-10-061-1/+1
| | | | | | | | | | | | After some discussion the best option seems to be to signal the thread's death from within the kernel. This requires that thr_exit() take an argument. Discussed with: davidxu, deischen, marcel MFC after: 3 days Notes: svn path=/head/; revision=136192
* Change the thread ID (thr_id_t) used for 1:1 threading from being aMarcel Moolenaar2004-07-021-9/+4
| | | | | | | | | | | | | | | | | | | | | | | pointer to the corresponding struct thread to the thread ID (lwpid_t) assigned to that thread. The primary reason for this change is that libthr now internally uses the same ID as the debugger and the kernel when referencing to a kernel thread. This allows us to implement the support for debugging without additional translations and/or mappings. To preserve the ABI, the 1:1 threading syscalls, including the umtx locking API have not been changed to work on a lwpid_t. Instead the 1:1 threading syscalls operate on long and the umtx locking API has not been changed except for the contested bit. Previously this was the least significant bit. Now it's the most significant bit. Since the contested bit should not be tested by userland, this change is not expected to be visible. Just to be sure, UMTX_CONTESTED has been removed from <sys/umtx.h>. Reviewed by: mtm@ ABI preservation tested on: i386, ia64 Notes: svn path=/head/; revision=131431
* Separate thread synchronization from signals in libthr. InsteadMike Makonnen2004-03-271-0/+2
| | | | | | | | | use msleep() and wakeup_one(). Discussed with: jhb, peter, tjr Notes: svn path=/head/; revision=127482
* - Add two files to support the thr threading interface.Jeff Roberson2003-04-011-0/+52
- sys/thr.h contains the user space visible api that is intended only for use in threading library packages. - kern/kern_thr.c contains thr system calls and other thr specific code. Notes: svn path=/head/; revision=112899