Home
last modified time | relevance | path

Searched refs:WaitableEvent (Results 1 – 25 of 30) sorted by relevance

12

/external/libchrome/base/synchronization/
Dwaitable_event_posix.cc42 WaitableEvent::WaitableEvent(bool manual_reset, bool initially_signaled) in WaitableEvent() function in base::WaitableEvent
46 WaitableEvent::~WaitableEvent() { in ~WaitableEvent()
49 void WaitableEvent::Reset() { in Reset()
54 void WaitableEvent::Signal() { in Signal()
71 bool WaitableEvent::IsSignaled() { in IsSignaled()
87 class SyncWaiter : public WaitableEvent::Waiter {
96 bool Fire(WaitableEvent* signaling_event) override { in Fire()
114 WaitableEvent* signaling_event() const { in signaling_event()
150 WaitableEvent* signaling_event_; // The WaitableEvent which woke us
155 void WaitableEvent::Wait() { in Wait()
[all …]
Dwaitable_event_unittest.cc18 WaitableEvent event(true, false); in TEST()
36 WaitableEvent event(false, false); in TEST()
57 WaitableEvent* ev[5]; in TEST()
59 ev[i] = new WaitableEvent(false, false); in TEST()
62 EXPECT_EQ(WaitableEvent::WaitMany(ev, 5), 3u); in TEST()
65 EXPECT_EQ(WaitableEvent::WaitMany(ev, 5), 3u); in TEST()
68 EXPECT_EQ(WaitableEvent::WaitMany(ev, 5), 4u); in TEST()
71 EXPECT_EQ(WaitableEvent::WaitMany(ev, 5), 0u); in TEST()
79 WaitableEventSignaler(TimeDelta delay, WaitableEvent* event) in WaitableEventSignaler()
91 WaitableEvent* event_;
[all …]
Dwaitable_event.h44 class BASE_EXPORT WaitableEvent {
50 WaitableEvent(bool manual_reset, bool initially_signaled);
56 explicit WaitableEvent(win::ScopedHandle event_handle);
59 ~WaitableEvent();
102 static size_t WaitMany(WaitableEvent** waitables, size_t count);
124 virtual bool Fire(WaitableEvent* signaling_event) = 0;
167 typedef std::pair<WaitableEvent*, size_t> WaiterAndIndex;
184 DISALLOW_COPY_AND_ASSIGN(WaitableEvent);
Dwaitable_event_watcher.h24 class WaitableEvent; variable
68 typedef Callback<void(WaitableEvent*)> EventCallback;
74 bool StartWatching(WaitableEvent* event, const EventCallback& callback);
87 WaitableEvent* GetWatchedEvent();
105 scoped_refptr<WaitableEvent::WaitableEventKernel> kernel_;
108 WaitableEvent* event_;
Dwaitable_event_watcher_posix.cc60 class AsyncWaiter : public WaitableEvent::Waiter {
69 bool Fire(WaitableEvent* event) override { in Fire()
100 WaitableEvent* event) { in AsyncCallbackHelper()
126 WaitableEvent* event, in StartWatching()
150 WaitableEvent::WaitableEventKernel* kernel = event->kernel_.get(); in StartWatching()
251 WaitableEvent* WaitableEventWatcher::GetWatchedEvent() { in GetWatchedEvent()
/external/libchrome/base/threading/
Dsimple_thread_unittest.cc29 explicit WaitEventRunner(WaitableEvent* event) : event_(event) { } in WaitEventRunner()
38 WaitableEvent* event_;
56 int total, WaitableEvent* event) in VerifyPoolRunner()
70 WaitableEvent* event_;
98 WaitableEvent event(true, false); in TEST()
111 WaitableEvent event(true, false); in TEST()
155 WaitableEvent event(true, false); in TEST()
Dworker_pool_unittest.cc63 WaitableEvent test_event_;
72 WaitableEvent test_event(false, false); in TEST_F()
73 WaitableEvent long_test_event(false, false); in TEST_F()
76 base::Bind(&WaitableEvent::Signal, in TEST_F()
80 base::Bind(&WaitableEvent::Signal, in TEST_F()
Dthread_local_unittest.cc19 ThreadLocalTesterBase(TLPType* tlp, base::WaitableEvent* done) in ThreadLocalTesterBase()
27 base::WaitableEvent* done_;
32 SetThreadLocal(TLPType* tlp, base::WaitableEvent* done) in SetThreadLocal()
52 GetThreadLocal(TLPType* tlp, base::WaitableEvent* done) in GetThreadLocal()
85 base::WaitableEvent done(true, false); in TEST()
Dthread.h238 mutable WaitableEvent id_event_; // Protects |id_|.
252 mutable WaitableEvent start_event_;
Dsimple_thread.h120 WaitableEvent event_; // Signaled if Start() was ever called.
188 WaitableEvent dry_; // Not signaled when there is no work to do.
Dworker_pool_posix_unittest.cc77 base::WaitableEvent* start;
148 base::WaitableEvent start_;
Dplatform_thread_unittest.cc126 mutable WaitableEvent termination_ready_;
127 WaitableEvent terminate_thread_;
Dthread_unittest.cc111 base::WaitableEvent* event) { in ReturnThreadId()
212 base::WaitableEvent event(false, false); in TEST_F()
/external/libchrome/base/memory/
Dweak_ptr_unittest.cc67 WaitableEvent completion(true, false); in CreateArrowFromTarget()
75 WaitableEvent completion(true, false); in CreateArrowFromArrow()
83 WaitableEvent completion(true, false); in DeleteTarget()
91 WaitableEvent completion(true, false); in CopyAndAssignArrow()
99 WaitableEvent completion(true, false); in CopyAndAssignArrowBase()
107 WaitableEvent completion(true, false); in DeleteArrow()
115 WaitableEvent completion(true, false); in DeRef()
126 WaitableEvent* completion) { in DoCreateArrowFromArrow()
134 WaitableEvent* completion) { in DoCreateArrowFromTarget()
142 WaitableEvent* completion) { in DoDeRef()
[all …]
/external/libchrome/base/test/
Dtest_io_thread.cc13 void PostTaskAndWaitHelper(base::WaitableEvent* event, in PostTaskAndWaitHelper()
59 base::WaitableEvent event(false, false); in PostTaskAndWait()
/external/libchrome/base/
Dsync_socket.h144 WaitableEvent shutdown_event_;
145 WaitableEvent file_operation_;
/external/libchrome/base/trace_event/
Dtrace_event_unittest.cc65 WaitableEvent* flush_complete_event,
98 WaitableEvent flush_complete_event(false, false); in CancelTrace()
105 WaitableEvent flush_complete_event(false, false); in EndTraceAndFlush()
113 WaitableEvent flush_complete_event(false, false); in EndTraceAndFlushInThreadWithMessageLoop()
122 void CancelTraceAsync(WaitableEvent* flush_complete_event) { in CancelTraceAsync()
129 void EndTraceAndFlushAsync(WaitableEvent* flush_complete_event) { in EndTraceAndFlushAsync()
138 WaitableEvent flush_complete_event(false, false); in FlushMonitoring()
143 void FlushMonitoring(WaitableEvent* flush_complete_event) { in FlushMonitoring()
186 WaitableEvent* flush_complete_event, in OnTraceDataCollected()
408 void TraceWithAllMacroVariants(WaitableEvent* task_complete_event) { in TraceWithAllMacroVariants()
[all …]
Dtrace_sampling_thread.h48 WaitableEvent waitable_event_for_testing_;
Dtrace_event_impl.h33 class WaitableEvent; variable
/external/libchrome/base/posix/
Dunix_domain_socket_linux_unittest.cc55 WaitableEvent event(false, false); in TEST()
57 FROM_HERE, Bind(&WaitableEvent::Signal, Unretained(&event))); in TEST()
/external/libchrome/sandbox/linux/seccomp-bpf-helpers/
Dsyscall_parameters_restrictions_unittests.cc130 void SchedGetParamThread(base::WaitableEvent* thread_run) { in SchedGetParamThread()
157 base::WaitableEvent thread_run(true, false); in BPF_TEST_C()
/external/libchrome/base/message_loop/
Dmessage_pump_default.h32 WaitableEvent event_;
Dincoming_task_queue.h18 class WaitableEvent; variable
/external/libchrome/base/mac/
Dlibdispatch_task_runner.h74 base::WaitableEvent queue_finalized_;
/external/libchrome/dbus/
Dbus.h702 base::WaitableEvent on_shutdown_;

12