-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Remove recursive mutex & fix unbalanced locking in TestPlatformMgr #1587
Conversation
We shouldn't use recursive mutexes for synchronization as they greatly complicate analysis and maintenance.
Size increase report for "nrf-example-build"
Full report output
|
Size increase report for "linux-example-build"
Full report output
|
Size increase report for "esp32-example-build"
Full report output
|
Size increase report for "gn_nrf-example-build"
Full report output
|
Size increase report for "gn_linux-example-build"
Full report output
|
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.
LGTM 👍
…roject-chip#1587) We shouldn't use recursive mutexes for synchronization as they greatly complicate analysis and maintenance.
…roject-chip#1587) We shouldn't use recursive mutexes for synchronization as they greatly complicate analysis and maintenance.
…roject-chip#1587) We shouldn't use recursive mutexes for synchronization as they greatly complicate analysis and maintenance.
#else | ||
#error "No defined static initializer for POSIX Threads recursive mutex!" | ||
#endif // defined(PTHREAD_RECURSIVE_MUTEX_INITIALIZER) | ||
mChipStackLock = PTHREAD_MUTEX_INITIALIZER; |
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.
Did we lose some portability here?
…roject-chip#1587) We shouldn't use recursive mutexes for synchronization as they greatly complicate analysis and maintenance.
…roject-chip#1587) We shouldn't use recursive mutexes for synchronization as they greatly complicate analysis and maintenance.
We shouldn't use recursive mutexes for synchronization as they greatly
complicate analysis and maintenance.
fixes #1584