Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Sep 2001 17:46:42 -0600
From:      Nate Williams <nate@yogotech.com>
To:        John Baldwin <jhb@FreeBSD.ORG>
Cc:        julian@FreeBSD.ORG, arch@FreeBSD.ORG
Subject:   Re: sigsuspend() and KSE
Message-ID:  <15273.11874.366229.387658@nomad.yogotech.com>
In-Reply-To: <XFMail.010919161625.jhb@FreeBSD.org>
References:  <XFMail.010919161625.jhb@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> /*
>  * Suspend process until signal, providing mask to be set
>  * in the meantime.  Note nonstandard calling convention:
>  * libc stub passes mask, not pointer, to save a copyin.
>  ***** XXXKSE this doesn't make sense under KSE.
>  ***** Do we suspend the thread or all threads in the process?
>  ***** How do we suspend threads running NOW on another processor?
>  */
> 
> Here's my opinion:
> 
> sigsuspend() just suspends the current thread.  When a signal is posted, it
> wakes up all threads blocked on sigsuspend whose mask matches that signal.  I
> can see it still making sense, but perhaps being of limited usefulness in a
> threaded program.

What has limited usefulness?  Being able to suspend all threads, or
waking up all threads?


Nate

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15273.11874.366229.387658>