-
Notifications
You must be signed in to change notification settings - Fork 1.2k
CoreFoundation: introduce _CFMutex
, _CFRecursiveMutex
#1811
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
Conversation
79e85fc
to
8060f93
Compare
@swift-ci please test |
8060f93
to
a83abc9
Compare
@swift-ci please test |
a83abc9
to
ebd52cf
Compare
@swift-ci please test |
@swift-ci please test Linux platform |
1 similar comment
@swift-ci please test Linux platform |
This approach looks good to me. |
I double checked on the recursive thing and you're right that |
@swift-ci please test Linux platform |
1 similar comment
@swift-ci please test Linux platform |
Introduce the `_CFMutex` and `_CFRecursiveMutex` types to allow us to differentiate between recursive and non-recursive mutexes and be able to replace them on different platforms. This codepath does not use `CFLock_t` as these are expected to be full mutexes rather than unfair locks.
ebd52cf
to
574039f
Compare
@swift-ci please test |
@parkera / @phausler / @millenomi - okay to merge? |
@parkera @millenomi @phausler ping? |
I am going to defer to Tony on this one. |
Sorry for the delay, still catching up from the break. |
Introduce the
_CFMutex
and_CFRecursiveMutex
types to allow us todifferentiate between recursive and non-recursive mutexes and be able to replace
them on different platforms. This codepath does not use
CFLock_t
as these areexpected to be full mutexes rather than unfair locks.