123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- #ifndef BASE_SEQUENCE_CHECKER_IMPL_H_
- #define BASE_SEQUENCE_CHECKER_IMPL_H_
- #include <memory>
- #include "base/base_export.h"
- #include "base/compiler_specific.h"
- #include "base/macros.h"
- #include "base/synchronization/lock.h"
- #include "base/thread_annotations.h"
- namespace base {
- class LOCKABLE BASE_EXPORT SequenceCheckerImpl {
- public:
- SequenceCheckerImpl();
- ~SequenceCheckerImpl();
-
-
-
-
-
-
- SequenceCheckerImpl(SequenceCheckerImpl&& other);
- SequenceCheckerImpl& operator=(SequenceCheckerImpl&& other);
-
-
- bool CalledOnValidSequence() const WARN_UNUSED_RESULT;
-
-
- void DetachFromSequence();
- private:
- class Core;
-
-
- static bool HasThreadLocalStorageBeenDestroyed();
- mutable Lock lock_;
- mutable std::unique_ptr<Core> core_ GUARDED_BY(lock_);
- DISALLOW_COPY_AND_ASSIGN(SequenceCheckerImpl);
- };
- }
- #endif
|