This is the mail archive of the
mailing list for the glibc project.
Re: nptl refactoring; nacl port
- From: Petr Salinger <Petr dot Salinger at seznam dot cz>
- To: libc-alpha at sourceware dot org
- Date: Thu, 8 May 2014 20:50:11 +0200 (CEST)
- Subject: Re: nptl refactoring; nacl port
- Authentication-results: sourceware.org; auth=none
There is also lots of code that doesn't really assume Linux, but
just assumes that there is a futex facility. As NPTL is fundamentally
based on the futex facility, I don't think there will ever be an attempt
to port it to a system without such a facility. (NaCl has a futex
facility and the Hurd's GNU Mach might grow one someday.)
And FreeBSD kernel have similar capability. It provides basic futes-wake
and futex-wait operations. By default they operate on long, but later API
for int have been provided too. There is no FUTEX_CMP_REQUEUE, the
condition have to be implemented differently.
In fact the NPTL-like implementation already exists and reasonably works.
See subdirectories fbtl/ and fbtl_db/ in