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

Can I use "pthread_rwlock_rdlock" in function "prom_map_get"? #35

Open
cxyxiaoli opened this issue Nov 21, 2020 · 0 comments
Open

Can I use "pthread_rwlock_rdlock" in function "prom_map_get"? #35

cxyxiaoli opened this issue Nov 21, 2020 · 0 comments

Comments

@cxyxiaoli
Copy link

In the prom_map_get function, the thread write lock (pthread_rwlock_wrlock) is used.Can I use thread-read locks instead?Would it be more efficiently to change "pthread_rwlock_wrlock" to "pthread_rwlock_rdlock"?

@cxyxiaoli cxyxiaoli changed the title Can I use "pthread_rwlock_rdlock" in function Can I use "pthread_rwlock_rdlock" in function "prom_map_get"? Nov 21, 2020
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

No branches or pull requests

1 participant