Date: Sat, 24 Nov 2012 15:03:53 +0000 From: Attilio Rao <attilio@freebsd.org> To: Oleksandr Tymoshenko <gonzo@bluezbox.com> Cc: arch@freebsd.org Subject: Re: [RFC] sema_wait_sig Message-ID: <CAJ-FndD-EoKt=exd12NQQcufvQ-CZ4PC2=a8qrA2r%2B-uLk9Cqw@mail.gmail.com> In-Reply-To: <E5FE70A7-D2D2-4021-950B-48FD84F11F08@bluezbox.com> References: <E5FE70A7-D2D2-4021-950B-48FD84F11F08@bluezbox.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Nov 23, 2012 at 6:12 AM, Oleksandr Tymoshenko <gonzo@bluezbox.com> wrote: > Hello, > > Is there any particular reason FreeBSD does not have sema_wait_sig > function? It seems to be easily implementable using cv_wait_sig > function. The sema(9) primitive is considered obsolete/dying. You should really use mtx + condvar (so just go using cv_wait_sig() directly). I had a patch to remove it all from the kernel few years ago but I never got to commit it. It would be good if we can remove this primitive off before 10.0. Thanks, Attilio -- Peace can only be achieved by understanding - A. Einstein
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-FndD-EoKt=exd12NQQcufvQ-CZ4PC2=a8qrA2r%2B-uLk9Cqw>