We are on C++ 17. https://en.cppreference.com/w/cpp/thread/scoped_lock
https://trac.webkit.org/wiki/WebKitGTK/GCCRequirement Our requirement is GCC7. So, we can use it. https://www.gnu.org/software/gcc/gcc-7/changes.html
It generates exactly same code. We can safely replace this. https://godbolt.org/z/p-KTwc
Created attachment 392054 [details] Patch
Created attachment 392055 [details] Patch
Created attachment 392057 [details] Patch
Comment on attachment 392057 [details] Patch OK.
Comment on attachment 392057 [details] Patch Thanks
Comment on attachment 392057 [details] Patch Clearing flags on attachment: 392057 Committed r257688: <https://trac.webkit.org/changeset/257688>
All reviewed patches have been landed. Closing bug.
<rdar://problem/59925404>