Adopt clang thread safety annotation in WTF::DataMutex. This allows us to stop using UncheckedCondition in a few places.
Created attachment 430122 [details] Patch
Created attachment 430123 [details] Patch
Created attachment 430124 [details] Patch
Created attachment 430125 [details] Patch
Created attachment 430126 [details] Patch
Committed r278248 (238285@main): <https://commits.webkit.org/238285@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 430126 [details].
<rdar://problem/78656465>
Comment on attachment 430126 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=430126&action=review > Source/WTF/wtf/DataMutex.h:68 > + DATA_MUTEX_CHECK(!mutex().isHeld()); Checking this *before* taking the mutex will crash in inocuous cases such when another thread has already locked the DataMutex and the calling thread needs to wait.