raw_sync-rs icon indicating copy to clipboard operation
raw_sync-rs copied to clipboard

macos: add pthread_rwlock_timedrdlock() ..._timedwrlock()

Open cameronelliott opened this issue 3 years ago • 1 comments

On macos, the command cargo run --example locks will currently fail to link and fail to run.

See also #28

This is due to the absence of both:

pthread_rwlock_timedrdlock()
pthread_rwlock_timedwrlock()

The unix.rs file already contains a helper function for pthread_mutex_timedlock I made simple modifications to pthread_mutex_timedlock to create the needed functions for rwlock.

This allows the command cargo run --example locks to compile and run.

cameronelliott avatar May 10 '22 19:05 cameronelliott

@elast0ny Friendly ping :). I just ran into #28 and this PR seems to fix the issue.

phil-opp avatar Feb 21 '23 15:02 phil-opp