aboutsummaryrefslogtreecommitdiff
path: root/lib/libthr/thread/thr_affinity.c
Commit message (Collapse)AuthorAgeFilesLines
* libthr: remove explicit sys/cdefs.h includesKonstantin Belousov2024-03-131-1/+0
| | | | (cherry picked from commit f8bbbce458194ff4312c610d32a64ff4a3a71d45)
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-231-2/+0
| | | | | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/ Similar commit in main: (cherry picked from commit 1d386b48a555)
* spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh2023-07-251-1/+1
| | | | | | | | | | | The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix (cherry picked from commit 4d846d260e2b9a3d4d0a701462568268cbfe7a5b)
* 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