Home
last modified time | relevance | path

Searched refs:may_block (Results 1 – 11 of 11) sorted by relevance

/external/libchrome/base/task_scheduler/
Dtask_traits_unittest.cc16 EXPECT_FALSE(traits.may_block()); in TEST()
25 EXPECT_FALSE(traits.may_block()); in TEST()
34 EXPECT_FALSE(traits.may_block()); in TEST()
43 EXPECT_TRUE(traits.may_block()); in TEST()
52 EXPECT_FALSE(traits.may_block()); in TEST()
63 EXPECT_TRUE(traits.may_block()); in TEST()
76 EXPECT_EQ(traits.may_block(), traits_copy.may_block()); in TEST()
90 EXPECT_FALSE(overridden.may_block()); in TEST()
103 EXPECT_FALSE(overridden.may_block()); in TEST()
117 EXPECT_TRUE(overridden.may_block()); in TEST()
[all …]
Denvironment_config.cc17 if (traits.may_block() || traits.with_base_sync_primitives()) in GetEnvironmentIndexForTraits()
Dtask_traits.h200 constexpr bool may_block() const { return may_block_; } in may_block() function
Dtask_tracker.cc460 [task_traits.may_block() || task_traits.with_base_sync_primitives() in RecordLatencyHistogram()
477 ThreadRestrictions::SetIOAllowed(task.traits.may_block()); in RunOrSkipTask()
Dtask_scheduler_impl_unittest.cc89 EXPECT_EQ(traits.may_block(), GetIOAllowed()); in VerifyTaskEnvironment()
113 EXPECT_EQ(traits.may_block(), in VerifyTaskEnvironment()
Dscheduler_worker_pool_impl_unittest.cc1293 ScopedBlockingCall may_block(BlockingType::MAY_BLOCK); in TEST_F() local
/external/libbrillo/brillo/message_loops/
Dfake_message_loop.cc44 bool FakeMessageLoop::RunOnce(bool may_block) { in RunOnce() argument
49 (may_block || fire_order_.top().first <= current_time_)) { in RunOnce()
Dbase_message_loop.cc124 bool BaseMessageLoop::RunOnce(bool may_block) { in RunOnce() argument
128 if (!may_block) in RunOnce()
Dmessage_loop.h84 virtual bool RunOnce(bool may_block) = 0;
Dfake_message_loop.h44 bool RunOnce(bool may_block) override;
Dbase_message_loop.h49 bool RunOnce(bool may_block) override;