DescriptionAdd Darwin thread.h implementation.
Due to quirks of the Cocoa runtime several platform-specific fixes were
in place. See the deleted files maccocoathreadhelper and
scoped_autorelease_pool for examples. There is no way to do a stack-based
RAII autoreleasepool that is compatible with ARC, and autoreleasepool
blocks can't be used with c++. The solution was to separate out the
implementation of some methods in thread.h to an ObjC++ file for Darwin
platforms, allowing us to get rid of the helper classes and enable ARC
everywhere.
BUG=webrtc:6412
Review-Url: https://codereview.webrtc.org/2784483002
Cr-Commit-Position: refs/heads/master@{#17436}
Committed: https://chromium.googlesource.com/external/webrtc/+/61abe1582915fb25fe3f231d7d2c9a174c0e3e6b
Patch Set 1 #
Total comments: 6
Patch Set 2 : rename cocoathread #
Total comments: 4
Patch Set 3 : also rename the file in BUILD.gn #Patch Set 4 : Add clarifying comments #Patch Set 5 : Make ThreadInit private to rtc::Thread #
Messages
Total messages: 20 (8 generated)
|