Home
last modified time | relevance | path

Searched refs:SequenceToken (Results 1 – 10 of 10) sorted by relevance

/external/libchrome/base/
Dsequence_token_unittest.cc12 EXPECT_FALSE(SequenceToken().IsValid()); in TEST()
13 EXPECT_TRUE(SequenceToken::Create().IsValid()); in TEST()
17 const SequenceToken invalid_a; in TEST()
18 const SequenceToken invalid_b; in TEST()
19 const SequenceToken valid_a = SequenceToken::Create(); in TEST()
20 const SequenceToken valid_b = SequenceToken::Create(); in TEST()
34 const SequenceToken invalid_a; in TEST()
35 const SequenceToken invalid_b; in TEST()
36 const SequenceToken valid_a = SequenceToken::Create(); in TEST()
37 const SequenceToken valid_b = SequenceToken::Create(); in TEST()
[all …]
Dsequence_token.cc20 LazyInstance<ThreadLocalPointer<const SequenceToken>>::Leaky
28 bool SequenceToken::operator==(const SequenceToken& other) const { in operator ==()
32 bool SequenceToken::operator!=(const SequenceToken& other) const { in operator !=()
36 bool SequenceToken::IsValid() const { in IsValid()
40 int SequenceToken::ToInternalValue() const { in ToInternalValue()
44 SequenceToken SequenceToken::Create() { in Create()
45 return SequenceToken(g_sequence_token_generator.GetNext()); in Create()
48 SequenceToken SequenceToken::GetForCurrentThread() { in GetForCurrentThread()
49 const SequenceToken* current_sequence_token = in GetForCurrentThread()
51 return current_sequence_token ? *current_sequence_token : SequenceToken(); in GetForCurrentThread()
[all …]
Dsequence_token.h15 class BASE_EXPORT SequenceToken {
18 SequenceToken() = default;
21 SequenceToken(const SequenceToken& other) = default;
22 SequenceToken& operator=(const SequenceToken& other) = default;
26 bool operator==(const SequenceToken& other) const;
27 bool operator!=(const SequenceToken& other) const;
38 static SequenceToken Create();
43 static SequenceToken GetForCurrentThread();
46 explicit SequenceToken(int token) : token_(token) {} in SequenceToken() function
103 ScopedSetSequenceTokenForCurrentThread(const SequenceToken& sequence_token);
[all …]
Dsequence_checker_unittest.cc58 SequenceToken sequence_token) { in ExpectCalledOnValidSequenceWithSequenceToken()
78 scoped_set_sequence_token_for_current_thread(SequenceToken::Create()); in TEST()
90 const SequenceToken sequence_token(SequenceToken::Create()); in TEST()
106 scoped_set_sequence_token_for_current_thread(SequenceToken::Create()); in TEST()
113 scoped_set_sequence_token_for_current_thread(SequenceToken::Create()); in TEST()
126 scoped_set_sequence_token_for_current_thread(SequenceToken::Create()); in TEST()
136 scoped_set_sequence_token_for_current_thread(SequenceToken::Create()); in TEST()
155 SequenceToken::Create()); in TEST()
Dsequence_checker_impl.cc16 Core() : sequence_token_(SequenceToken::GetForCurrentThread()) {} in Core()
22 return sequence_token_ == SequenceToken::GetForCurrentThread(); in CalledOnValidSequence()
30 SequenceToken sequence_token_;
/external/libchrome/base/threading/
Dthread_checker_unittest.cc64 SequenceToken sequence_token) { in ExpectNotCalledOnValidThreadWithSequenceTokenAndThreadTaskRunnerHandle()
85 const SequenceToken sequence_token = SequenceToken::Create(); in TEST()
103 scoped_set_sequence_token_for_current_thread(SequenceToken::Create()); in TEST()
114 scoped_set_sequence_token_for_current_thread(SequenceToken::Create()); in TEST()
120 scoped_set_sequence_token_for_current_thread(SequenceToken::Create()); in TEST()
134 const SequenceToken sequence_token(SequenceToken::Create()); in TEST()
154 scoped_set_sequence_token_for_current_thread(SequenceToken::Create()); in TEST()
161 scoped_set_sequence_token_for_current_thread(SequenceToken::Create()); in TEST()
185 scoped_set_sequence_token_for_current_thread(SequenceToken::Create()); in TEST()
Dthread_checker_impl.cc32 (sequence_token_ != SequenceToken::GetForCurrentThread() || in CalledOnValidThread()
44 sequence_token_ = SequenceToken(); in DetachFromThread()
54 sequence_token_ = SequenceToken::GetForCurrentThread(); in EnsureAssigned()
Dthread_checker_impl.h57 mutable SequenceToken sequence_token_;
/external/libchrome/base/task_scheduler/
Dsequence.h71 const SequenceToken& token() const { return token_; } in token()
81 const SequenceToken token_ = SequenceToken::Create();
Dscheduler_worker_pool.cc116 return sequence_->token() == SequenceToken::GetForCurrentThread(); in RunsTasksInCurrentSequence()