raw_sync-rs
raw_sync-rs copied to clipboard
macos: add pthread_rwlock_timedrdlock() ..._timedwrlock()
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.
@elast0ny Friendly ping :). I just ran into #28 and this PR seems to fix the issue.