Re: [PATCH 10/14] bsd-user: Add stop_all_tasks

2021-09-24 Thread Richard Henderson
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 star

[PATCH 10/14] bsd-user: Add stop_all_tasks

2021-09-21 Thread Warner Losh
Similar to the same function in linux-user: this stops all the current tasks. Signed-off-by: Stacey Son Signed-off-by: Warner Losh --- bsd-user/main.c | 9 + bsd-user/qemu.h | 1 + 2 files changed, 10 insertions(+) diff --git a/bsd-user/main.c b/bsd-user/main.c index ee84554854..cb5ea4