Mixing Asynchronous Network I/O and POSIX Threads
uffe at uffe.org
Sun Sep 18 17:21:16 UTC 2011
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() ?
More information about the freebsd-hackers