Date: Sun, 18 Sep 2011 18:53:49 +0200 From: Uffe Jakobsen <uffe@uffe.org> To: hackers@freebsd.org Cc: Richard Yao <ryao@cs.stonybrook.edu> Subject: Re: Mixing Asynchronous Network I/O and POSIX Threads Message-ID: <4E76221D.50605@uffe.org> In-Reply-To: <CABDyM6Se4iGozRUvKjSKiV1CW%2B91Y_p7ZQ6syzP0hkaXRqe3og@mail.gmail.com> References: <CABDyM6Se4iGozRUvKjSKiV1CW%2B91Y_p7ZQ6syzP0hkaXRqe3og@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2011-09-18 17:32, Richard Yao wrote: > Dear FreeBSD Community: > > I wrote a program for Linux that uses Asynchronous Network I/O and > POSIX Threads. It uses a mix of gettid(), fcntl() and F_SETOWN to > specify which thread handles each connection's SIGIO interrupts. > gettid() is Linux-specific and I would prefer to do this in a way that > also works with FreeBSD. Is that possible? > How about pthread_self() ? /Uffe
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E76221D.50605>