Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cameronelliott
Copy link

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.

@phil-opp
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants