mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-20 11:11:24 +00:00
PS_DEAD state needs not be checked because _thr_find_thread() has already
checked it.
This commit is contained in:
parent
3a0d123e5f
commit
b749a04db3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=212539
@ -51,10 +51,6 @@ _pthread_setaffinity_np(pthread_t td, size_t cpusetsize, const cpuset_t *cpusetp
|
||||
if (error == -1)
|
||||
error = errno;
|
||||
} else if ((error = _thr_find_thread(curthread, td, 0)) == 0) {
|
||||
if (td->state == PS_DEAD) {
|
||||
THR_THREAD_UNLOCK(curthread, td);
|
||||
return (EINVAL);
|
||||
}
|
||||
tid = TID(td);
|
||||
error = cpuset_setaffinity(CPU_LEVEL_WHICH, CPU_WHICH_TID, tid,
|
||||
cpusetsize, cpusetp);
|
||||
|
Loading…
Reference in New Issue
Block a user