Lines Matching defs:looper

76 					looper is not locked
77 @results should lock the looper and return true.
82 BLooper *looper = new BLooper;
83 looper->Run();
84 LooperQuitter quitter(looper);
85 BMessenger messenger(NULL, looper, &result);
87 CHK(looper->IsLocked() == true);
88 looper->Unlock();
89 CHK(looper->IsLocked() == false);
95 looper is not locked
96 @results should lock the looper and return true.
100 // create looper and handler
102 BLooper *looper = new BLooper;
103 looper->Run();
104 LooperQuitter quitter(looper);
107 CHK(looper->Lock());
108 looper->AddHandler(handler);
109 looper->Unlock();
113 CHK(looper->IsLocked() == true);
114 looper->Unlock();
115 CHK(looper->IsLocked() == false);
121 looper is locked by another thread
122 @results should block until the looper is unlocked, lock it and
124 @thread A - locks the looper
126 - unlocks the looper
138 looper is locked by another thread
139 @results should block until the looper is unlocked, lock it and
141 @thread B - waits 50ms (until thread A has acquired the looper lock)
142 - tries to lock the looper via messenger and blocks
144 - unlocks the looper
163 looper is locked by another thread
164 @results should block until the looper is unlocked, lock it and
166 @thread A - locks the looper
168 - unlocks the looper
180 looper is locked by another thread
181 @results should block until the looper is unlocked, lock it and
183 @thread B - waits 50ms (until thread A has acquired the looper lock)
184 - tries to lock the looper via messenger and blocks
186 - unlocks the looper
205 handler, looper is not locked
206 @results should not lock the looper and return false.
218 looper is not locked
219 @results should not lock the looper and return false.
251 // create looper and handler