-
Notifications
You must be signed in to change notification settings - Fork 830
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
Support pthread_rwlock #5952
Support pthread_rwlock #5952
Conversation
Rebased and fixed segmentation fault. The segfault was occurring due to the |
f073ba9
to
7519d95
Compare
- Use read lock for the SessionCache - Don't copy the
- Mutex's still necessary for signals. Implement explicit rwlocks and we can migrate critical mutexs to rwlocks when necessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This refactor looks great! Just a couple clarifying questions.
Can one of the admins verify this patch? |
Description
This PR adds read-write lock (
pthread_rwlock_t
) support in Linux with a build settingWOLFSSL_USE_RWLOCK
option.Fixes zd#15424
Testing
./configure CFLAGS="-DWOLFSSL_USE_RWLOCK" && make check
Checklist