DescriptionAdd a thread-safety assertion in DEFINE_STATIC_LOCAL
Asserts if DEFINE_STATIC_LOCAL's usage is safe:
- Its first call is made before we create other threads, or
- It's called only on a single thread, or
- It's called inside a AtomicallyInitializedStatic
BUG=367982
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=189547
Patch Set 1 : #
Total comments: 1
Patch Set 2 : rebased #
Total comments: 4
Patch Set 3 : addressed eric's comments #
Total comments: 2
Patch Set 4 : added noncopyable #
Total comments: 2
Created: 5 years, 10 months ago
Messages
Total messages: 20 (8 generated)
|