Home
last modified time | relevance | path

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

1234

/external/chromium/base/synchronization/
Dwaitable_event_win.cc15 WaitableEvent::WaitableEvent(bool manual_reset, bool signaled) in WaitableEvent() function in base::WaitableEvent
22 WaitableEvent::WaitableEvent(HANDLE handle) in WaitableEvent() function in base::WaitableEvent
27 WaitableEvent::~WaitableEvent() { in ~WaitableEvent()
31 HANDLE WaitableEvent::Release() { in Release()
37 void WaitableEvent::Reset() { in Reset()
41 void WaitableEvent::Signal() { in Signal()
45 bool WaitableEvent::IsSignaled() { in IsSignaled()
49 bool WaitableEvent::Wait() { in Wait()
57 bool WaitableEvent::TimedWait(const TimeDelta& max_time) { in TimedWait()
77 size_t WaitableEvent::WaitMany(WaitableEvent** events, size_t count) { in WaitMany()
Dwaitable_event_posix.cc37 WaitableEvent::WaitableEvent(bool manual_reset, bool initially_signaled) in WaitableEvent() function in base::WaitableEvent
41 WaitableEvent::~WaitableEvent() { in ~WaitableEvent()
44 void WaitableEvent::Reset() { in Reset()
49 void WaitableEvent::Signal() { in Signal()
66 bool WaitableEvent::IsSignaled() { in IsSignaled()
82 class SyncWaiter : public WaitableEvent::Waiter {
91 bool Fire(WaitableEvent* signaling_event) { in Fire()
109 WaitableEvent* signaling_event() const { in signaling_event()
147 WaitableEvent* signaling_event_; // The WaitableEvent which woke us
152 bool WaitableEvent::Wait() { in Wait()
[all …]
Dwaitable_event_unittest.cc13 WaitableEvent event(true, false); in TEST()
31 WaitableEvent event(false, false); in TEST()
52 WaitableEvent* ev[5]; in TEST()
54 ev[i] = new WaitableEvent(false, false); in TEST()
57 EXPECT_EQ(WaitableEvent::WaitMany(ev, 5), 3u); in TEST()
60 EXPECT_EQ(WaitableEvent::WaitMany(ev, 5), 3u); in TEST()
63 EXPECT_EQ(WaitableEvent::WaitMany(ev, 5), 4u); in TEST()
66 EXPECT_EQ(WaitableEvent::WaitMany(ev, 5), 0u); in TEST()
74 WaitableEventSignaler(double seconds, WaitableEvent* ev) in WaitableEventSignaler()
86 WaitableEvent *const ev_;
[all …]
Dwaitable_event.h45 class BASE_API WaitableEvent {
51 WaitableEvent(bool manual_reset, bool initially_signaled);
57 explicit WaitableEvent(HANDLE event_handle);
63 ~WaitableEvent();
97 static size_t WaitMany(WaitableEvent** waitables, size_t count);
119 virtual bool Fire(WaitableEvent* signaling_event) = 0;
159 typedef std::pair<WaitableEvent*, size_t> WaiterAndIndex;
176 DISALLOW_COPY_AND_ASSIGN(WaitableEvent);
Dwaitable_event_watcher.h25 class WaitableEvent; variable
85 virtual void OnWaitableEventSignaled(WaitableEvent* waitable_event) = 0;
93 bool StartWatching(WaitableEvent* event, Delegate* delegate);
110 WaitableEvent* GetWatchedEvent();
154 scoped_refptr<WaitableEvent::WaitableEventKernel> kernel_;
157 WaitableEvent* event_;
Dwaitable_event_watcher_unittest.cc17 virtual void OnWaitableEventSignaled(WaitableEvent* event) { in OnWaitableEventSignaled()
26 virtual void OnWaitableEventSignaled(WaitableEvent* object) { in OnWaitableEventSignaled()
37 WaitableEvent event(true, false); in RunTest_BasicSignal()
57 WaitableEvent event(true, false); in RunTest_BasicCancel()
71 WaitableEvent event(true, false); in RunTest_CancelAfterSet()
97 WaitableEvent event(true, false); in RunTest_OutlivesMessageLoop()
118 WaitableEvent* event = new WaitableEvent(false, false); in RunTest_DeleteUnder()
Dwaitable_event_watcher_posix.cc52 class AsyncWaiter : public WaitableEvent::Waiter {
59 bool Fire(WaitableEvent* event) { in Fire()
96 WaitableEvent* event) in AsyncCallbackTask()
117 WaitableEvent *const event_;
138 (WaitableEvent* event, WaitableEventWatcher::Delegate* delegate) { in StartWatching()
159 WaitableEvent::WaitableEventKernel* kernel = event->kernel_.get(); in StartWatching()
261 WaitableEvent* WaitableEventWatcher::GetWatchedEvent() { in GetWatchedEvent()
Dwaitable_event_watcher_win.cc32 bool WaitableEventWatcher::StartWatching(WaitableEvent* event, in StartWatching()
46 WaitableEvent* WaitableEventWatcher::GetWatchedEvent() { in GetWatchedEvent()
51 WaitableEvent* event = event_; in OnObjectSignaled()
/external/chromium/chrome/browser/sync/glue/
Dui_model_worker_unittest.cc22 UIModelWorkerVisitor(base::WaitableEvent* was_run, in UIModelWorkerVisitor()
37 base::WaitableEvent* was_run_;
78 base::WaitableEvent** jobs, in FakeSyncapiShutdownTask()
99 base::WaitableEvent** jobs_;
101 base::WaitableEvent all_jobs_done_;
131 base::WaitableEvent v_was_run(false, false); in TEST_F()
164 base::WaitableEvent v_ran(false, false); in TEST_F()
167 base::WaitableEvent* jobs[] = { &v_ran }; in TEST_F()
196 base::WaitableEvent fox1_ran(false, false); in TEST_F()
199 base::WaitableEvent fox2_ran(false, false); in TEST_F()
[all …]
Dhistory_model_worker.cc13 using base::WaitableEvent;
19 WorkerTask(Callback0::Type* work, WaitableEvent* done) in WorkerTask()
35 WaitableEvent* done_;
47 WaitableEvent done(false, false); in DoWorkAndWaitUntilDone()
Dpassword_model_worker.cc13 using base::WaitableEvent;
25 WaitableEvent done(false, false); in DoWorkAndWaitUntilDone()
33 WaitableEvent* done) { in CallDoWorkAndSignalTask()
Dautofill_data_type_controller_unittest.cc26 using base::WaitableEvent;
72 explicit SignalEventTask(WaitableEvent* done_event) in SignalEventTask()
80 WaitableEvent* done_event_;
140 WaitableEvent done_event(false, false); in WaitForEmptyDBMessageLoop()
224 WaitableEvent pause_db_thread(false, false); in TEST_F()
225 WaitableEvent wait_for_db_thread_pause(false, false); in TEST_F()
268 WaitableEvent pause_db_thread(false, false); in TEST_F()
269 WaitableEvent wait_for_db_thread_pause(false, false); in TEST_F()
Ddatabase_model_worker.cc10 using base::WaitableEvent;
20 WaitableEvent done(false, false); in DoWorkAndWaitUntilDone()
31 WaitableEvent* done) { in CallDoWorkAndSignalTask()
Dui_model_worker.h17 class WaitableEvent; variable
41 base::WaitableEvent* work_done, in CallDoWorkAndSignalTask()
54 base::WaitableEvent* work_done_;
Ddatabase_model_worker.h13 class WaitableEvent; variable
31 base::WaitableEvent* done);
/external/chromium/base/threading/
Dsimple_thread_unittest.cc31 explicit WaitEventRunner(WaitableEvent* event) : event_(event) { } in WaitEventRunner()
40 WaitableEvent* event_;
60 int total, WaitableEvent* event) in VerifyPoolRunner()
74 WaitableEvent* event_;
102 WaitableEvent event(true, false); in TEST()
115 WaitableEvent event(true, false); in TEST()
159 WaitableEvent event(true, false); in TEST()
Dworker_pool_unittest.cc19 explicit PostTaskTestTask(WaitableEvent* event) : event_(event) { in PostTaskTestTask()
27 WaitableEvent* event_;
33 WaitableEvent test_event(false, false); in TEST_F()
34 WaitableEvent long_test_event(false, false); in TEST_F()
Dthread_local_unittest.cc19 ThreadLocalTesterBase(TLPType* tlp, base::WaitableEvent* done) in ThreadLocalTesterBase()
25 base::WaitableEvent* done_;
30 SetThreadLocal(TLPType* tlp, base::WaitableEvent* done) in SetThreadLocal()
48 GetThreadLocal(TLPType* tlp, base::WaitableEvent* done) in GetThreadLocal()
80 base::WaitableEvent done(true, false); in TEST()
/external/chromium/chrome/browser/automation/
Dautomation_util.cc32 base::WaitableEvent* event, in GetCookiesOnIOThread()
42 base::WaitableEvent* event, in GetCanonicalCookiesOnIOThread()
54 base::WaitableEvent* event, in SetCookieOnIOThread()
67 base::WaitableEvent* event, in SetCookieWithDetailsOnIOThread()
83 base::WaitableEvent* event) { in DeleteCookieOnIOThread()
121 base::WaitableEvent event(true /* manual reset */, in GetCookies()
147 base::WaitableEvent event(true /* manual reset */, in SetCookie()
174 base::WaitableEvent event(true /* manual reset */, in DeleteCookie()
200 base::WaitableEvent event(true /* manual reset */, in GetCookiesJSON()
248 base::WaitableEvent event(true /* manual reset */, in DeleteCookieJSON()
[all …]
/external/chromium/chrome/browser/sync/engine/
Dsyncer_thread2_unittest.cc110 bool GetBackoffAndResetTest(base::WaitableEvent* done) { in GetBackoffAndResetTest()
132 void PostSignalTask(base::WaitableEvent* done) { in PostSignalTask()
137 void FlushLastTask(base::WaitableEvent* done) { in FlushLastTask()
143 static void SignalWaitableEvent(base::WaitableEvent* event) { in SignalWaitableEvent()
204 base::WaitableEvent done(false, false); in TEST_F()
244 base::WaitableEvent done(false, false); in TEST_F()
267 base::WaitableEvent done(false, false); in TEST_F()
268 base::WaitableEvent* dummy = NULL; in TEST_F()
301 base::WaitableEvent done(false, false); in TEST_F()
302 base::WaitableEvent done1(false, false); in TEST_F()
[all …]
/external/chromium/net/base/
Dkeygen_handler_unittest.cc85 ConcurrencyTestTask(base::WaitableEvent* event, in ConcurrencyTestTask()
114 base::WaitableEvent* event_;
123 base::WaitableEvent* events[NUM_HANDLERS] = { NULL }; in TEST_F()
126 events[i] = new base::WaitableEvent(false, false); in TEST_F()
/external/chromium/chrome/browser/
Dprocess_singleton_uitest.cc59 void StartChrome(base::WaitableEvent* start_event, bool first_run) { in StartChrome()
94 ASSERT_NE(static_cast<base::WaitableEvent*>(NULL), start_event); in StartChrome()
114 base::WaitableEvent ready_event_;
115 base::WaitableEvent done_event_;
213 base::WaitableEvent threads_waker_;
285 base::WaitableEvent* starters_done_events[kNbThreads]; in TEST_F()
294 size_t done_index = base::WaitableEvent::WaitMany( in TEST_F()
Dplugin_data_remover.h17 class WaitableEvent; variable
32 base::WaitableEvent* StartRemoving(base::Time begin_time);
80 scoped_ptr<base::WaitableEvent> event_;
/external/chromium/chrome/browser/sync/util/
Dextensions_activity_monitor_unittest.cc44 base::WaitableEvent* done) : in BookmarkAPIEventTask()
59 base::WaitableEvent* done_;
79 base::WaitableEvent done_event(false, false); in NewEvent()
94 base::WaitableEvent* done) in DoUIThreadSetupTask()
103 base::WaitableEvent* signal_when_done_;
115 base::WaitableEvent service_created(false, false); in SetUp()
/external/chromium/chrome/browser/net/
Dcookie_policy_browsertest.cc24 base::WaitableEvent* event, in GetCookiesTask()
41 base::WaitableEvent* const event_;
53 base::WaitableEvent event(true /* manual reset */, in GetCookies()

1234