webrtc/rtc_base/synchronization
Tommi 3da04a93cd Allow SequenceChecker to be initialized detached.
The motivation for this is to not have to implement this pattern:

foo.h:

class Foo {
 public:
  Foo();
 private:
  SequenceChecker checker_;
};

foo.cc:

Foo::Foo() {
  checker_.Detach();
}

And instead be able to do this inline in the .h file:

class Foo {
 public:
  Foo();
 private:
  SequenceChecker checker_{SequenceChecker::kDetached};
};

Bug: none
Change-Id: Idd7ca82d15c2f77f3aaccf26f1943a49f4b40661
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/298445
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Commit-Queue: Tomas Gunnarsson <tommi@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#39616}
2023-03-21 12:34:15 +00:00
..
BUILD.gn Always check out google_benchmark, part 5. 2023-03-15 07:52:04 +00:00
DEPS Introduces rtc_base/synchronization/mutex.h. 2020-06-04 09:55:12 +00:00
mutex.h Reland "Delete unused class GlobalMutex" 2022-04-08 10:02:08 +00:00
mutex_abseil.h Add method Mutex::AssertHeld 2021-07-27 07:46:32 +00:00
mutex_benchmark.cc Fix 'DoNotOptimize<int>' is deprecated issue. 2023-03-17 14:56:40 +00:00
mutex_critical_section.h Add method Mutex::AssertHeld 2021-07-27 07:46:32 +00:00
mutex_pthread.h Add method Mutex::AssertHeld 2021-07-27 07:46:32 +00:00
mutex_unittest.cc Remove usage of MessageHandlerAutoCleanup in rtc_base unittests 2022-09-05 10:14:50 +00:00
sequence_checker_internal.cc Allow SequenceChecker to be initialized detached. 2023-03-21 12:34:15 +00:00
sequence_checker_internal.h Allow SequenceChecker to be initialized detached. 2023-03-21 12:34:15 +00:00
yield.cc Introduces rtc_base/synchronization/mutex.h. 2020-06-04 09:55:12 +00:00
yield.h Introduces rtc_base/synchronization/mutex.h. 2020-06-04 09:55:12 +00:00
yield_policy.cc Add pthread thread-local storage support for ScopedYieldPolicy 2019-07-19 14:33:53 +00:00
yield_policy.h Deleting copy constructors for Scoped* classes. 2019-03-25 09:05:29 +00:00
yield_policy_unittest.cc In rtc_base/ and api/ replace mock macros with unified MOCK_METHOD macro 2020-05-14 19:33:26 +00:00