1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

thread: retire thread_find

tdfind should be used instead.
This commit is contained in:
Mateusz Guzik 2020-11-10 01:57:48 +00:00
parent f837888a3e
commit 5c100123a3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=367544
2 changed files with 0 additions and 14 deletions

View File

@ -1325,19 +1325,6 @@ thread_single_end(struct proc *p, int mode)
kick_proc0();
}
struct thread *
thread_find(struct proc *p, lwpid_t tid)
{
struct thread *td;
PROC_LOCK_ASSERT(p, MA_OWNED);
FOREACH_THREAD_IN_PROC(p, td) {
if (td->td_tid == tid)
break;
}
return (td);
}
/* Locate a thread by number; return with proc lock held. */
struct thread *
tdfind(lwpid_t tid, pid_t pid)

View File

@ -1153,7 +1153,6 @@ void thread_suspend_one(struct thread *td);
void thread_unlink(struct thread *td);
void thread_unsuspend(struct proc *p);
void thread_wait(struct proc *p);
struct thread *thread_find(struct proc *p, lwpid_t tid);
void stop_all_proc(void);
void resume_all_proc(void);