|
From: | Richard Henderson |
Subject: | Re: [PATCH 10/14] bsd-user: Add stop_all_tasks |
Date: | Thu, 23 Sep 2021 11:04:05 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 |
On 9/21/21 11:14 PM, Warner Losh wrote:
+void stop_all_tasks(void) +{ + /* + * We trust when using NPTL (pthreads) start_exclusive() handles thread + * stopping correctly. + */ + start_exclusive(); +}
Eh. It begs the question of why this is present, as opposed to calling start_exclusive directly for the one (1) use. Looks to me like we should remove it.
r~
[Prev in Thread] | Current Thread | [Next in Thread] |