summaryrefslogtreecommitdiff
path: root/lib/libthr/thread/thr_affinity.c
Commit message (Collapse)AuthorAgeFilesLines
* lib: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-261-1/+3
| | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using mis-identified many licenses so this was mostly a manual - error prone - task. 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. Notes: svn path=/head/; revision=326219
* Use __FBSDID() for .c files from lib/libthr/thread.Konstantin Belousov2016-04-081-3/+3
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=297706
* Don't compare thread pointers again.David Xu2010-09-131-3/+3
| | | | Notes: svn path=/head/; revision=212552
* PS_DEAD state needs not be checked because _thr_find_thread() has alreadyDavid Xu2010-09-131-4/+0
| | | | | | | checked it. Notes: svn path=/head/; revision=212539
* Convert thread list lock from mutex to rwlock.David Xu2010-09-131-7/+14
| | | | Notes: svn path=/head/; revision=212536
* Avoid various shadowed variables. libthr is now almost WARNS=4 clean exceptXin LI2008-04-231-5/+5
| | | | | | | | | for some const dequalifiers that needs more careful investigation. Ok'ed by: davidxu Notes: svn path=/head/; revision=178446
* Non-portable functions are in pthread_np.h, fix compiling problem.David Xu2008-04-021-1/+1
| | | | Notes: svn path=/head/; revision=177861
* if passed thread pointer is equal to current thread, pass -1 to kernelDavid Xu2008-03-191-11/+19
| | | | | | | to speed up searching. Notes: svn path=/head/; revision=177370
* Implement functions pthread_getaffinity_np and pthread_setaffinity_np toDavid Xu2008-03-031-0/+74
get and set thread's cpu affinity mask. Notes: svn path=/head/; revision=176763