apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yann Ylavic <ylavic....@gmail.com>
Subject Re: No timed lock on MacOS
Date Mon, 03 Apr 2017 21:42:03 GMT
On Mon, Apr 3, 2017 at 10:48 PM, Jim Jagielski <jim@jagunet.com> wrote:
> It looks like we can emulate it via:
>
>     https://github.com/tinycthread/tinycthread/commit/1e8f9bba87959331e616d279dc54676e3a592799

Is PTHREAD_CONDATTR_SETPSHARED defined in pthread.h (or the function
pthread_condattr_setpshared)?
If that's the case, we could implement a pthread_mutex_timedlock with
pthread_cond_timedwait (like we do currently as a fallback for
thread-mutexes).

Mime
View raw message