summaryrefslogtreecommitdiff
path: root/lib/libthr/thread/thr_getschedparam.c
Commit message (Collapse)AuthorAgeFilesLines
* POSIX compliance improvements in the pthread(3) functions.Pedro F. Giffuni2018-08-181-2/+2
| | | | | | | | | | | | | | | | This basically adds makes use of the C99 restrict keyword, and also adds some 'const's to four threading functions: pthread_mutexattr_gettype(), pthread_mutexattr_getprioceiling(), pthread_mutexattr_getprotocol(), and pthread_mutex_getprioceiling. The changes are in accordance to POSIX/SUSv4-2018. Hinted by: DragonFlyBSD Relnotes: yes MFC after: 1 month Differential Revision: D16722 Notes: svn path=/head/; revision=337992
* spdx: initial adoption of licensing ID tags.Pedro F. Giffuni2017-11-181-1/+3
| | | | | | | | | | | | | | | | | | | | The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Initially, only tag files that use BSD 4-Clause "Original" license. RelNotes: yes Differential Revision: https://reviews.freebsd.org/D13133 Notes: svn path=/head/; revision=325966
* Use __FBSDID() for .c files from lib/libthr/thread.Konstantin Belousov2016-04-081-2/+3
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=297706
* Don't forget to initialize return value.David Xu2012-07-201-1/+1
| | | | Notes: svn path=/head/; revision=238645
* Eliminate duplicated code.David Xu2012-07-201-19/+10
| | | | Notes: svn path=/head/; revision=238643
* use rtprio_thread system call to get or set thread priority.David Xu2006-09-211-0/+2
| | | | Notes: svn path=/head/; revision=162499
* Caching scheduling policy and priority in userland, a critical but baddlyDavid Xu2006-07-131-8/+5
| | | | | | | | written application is frequently changing thread priority for SCHED_OTHER policy. Notes: svn path=/head/; revision=160331
* Use thr_setscheduler, thr_getscheduler and thr_setschedparam to implementDavid Xu2006-07-131-20/+6
| | | | | | | pthread functions. Notes: svn path=/head/; revision=160321
* Use kernel facilities to support real-time scheduling.David Xu2006-07-121-14/+29
| | | | Notes: svn path=/head/; revision=160287
* - Use same priority range returned by kernel's sched_get_priority_min()David Xu2006-04-271-4/+2
| | | | | | | | and sched_get_priority_max() syscalls. - Remove unused fields from structure pthread_attr. Notes: svn path=/head/; revision=158073
* 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-0/+77
| | | | | | | | | | | | | | | | | | | 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
* o Catch up with the mutex priority protocol fixes.Mike Makonnen2004-02-181-59/+0
| | | | | | | | o Move pthread_getschedparam() into the same file with it's pthread_set* counterpart. Copyright on both files is identical. Notes: svn path=/head/; revision=125968
* - Add libthr but don't hook it up to the regular build yet. This is anJeff Roberson2003-04-011-0/+59
adaptation of libc_r for the thr system call interface. This is beta quality code. Notes: svn path=/head/; revision=112918