/haiku-fatelf/src/kits/app/ |
H A D | LooperList.cpp | 60 BLooperList::AddLooper(BLooper* looper) argument 64 if (!IsLooperValid(looper)) { 68 fData.push_back(LooperData(looper)); 69 looper->Lock(); 71 i->looper = looper; 72 looper->Lock(); 79 BLooperList::IsLooperValid(const BLooper* looper) argument 85 FindLooperPred(looper)) != fData.end(); 90 BLooperList::RemoveLooper(BLooper* looper) argument 134 BLooper* looper = NULL; local 148 BLooper* looper = NULL; local 164 BLooper* looper = NULL; local 180 BLooper* looper = NULL; local 223 LooperData(BLooper* looper) argument [all...] |
H A D | Messenger.cpp | 84 looper is targeted. If no looper is supplied the looper the given handler 86 already belong to a looper. If both are supplied the handler must actually 87 belong to looper. 90 \param looper The target looper. May be \c NULL. 94 BMessenger::BMessenger(const BHandler* handler, const BLooper* looper, argument 101 status_t error = (handler || looper ? B_OK : B_BAD_VALUE); 104 // BHandler is given, check/retrieve the looper 213 BLooper *looper = NULL; local 243 BLooper *looper = NULL; local [all...] |
/haiku-fatelf/src/tests/kits/app/blooper/ |
H A D | QuitTest.cpp | 25 @result Prints message "ERROR - you must Lock a looper before calling 26 Quit(), team=%ld, looper=%s\n" 31 BLooper* looper = new BLooper; local 32 looper->Unlock(); 33 looper->Quit(); 40 BLooper* looper = new BLooper; local 41 looper->Run(); 44 BMessenger(looper).SendMessage(B_QUIT_REQUESTED, &reply);
|
/haiku-fatelf/src/tests/kits/app/messaging/ |
H A D | HandlerLooperMessageTest.cpp | 24 Looper *looper = new Looper(); local 26 looper->AddHandler(new Handler()); 27 looper->AddHandler(new Handler()); 28 looper->AddHandler(handler); 29 looper->AddHandler(new Handler()); 30 looper->AddHandler(new Handler()); 32 looper->Run(); 34 looper->PostMessage(new BMessage(kMessage), handler); 38 looper->Lock(); 39 looper [all...] |
/haiku-fatelf/src/tests/kits/app/bmessenger/ |
H A D | SMRemoteTargetApp.cpp | 28 // create looper/handler 30 SMLooper *looper = new SMLooper; local 31 looper->Run(); 34 assert(looper->Lock()); 35 looper->AddHandler(handler); 36 looper->Unlock(); 38 DBG(OUT("REMOTE: looper/handler created\n")); 47 initData.messenger = BMessenger(handler, looper); 66 looper->SetReplyDelay(data.reply_delay); 67 looper [all...] |
H A D | Helpers.h | 26 inline LooperQuitter(BLooper *looper) : fLooper(looper) {} argument 64 if (BLooper *looper = fObject->Looper()) { 65 looper->Lock(); 66 looper->RemoveHandler(fObject); 67 looper->Unlock();
|
H A D | TargetTester.cpp | 50 BLooper *looper = new BLooper; local 51 looper->Run(); 52 LooperQuitter quitter(looper); 53 BMessenger messenger(NULL, looper, &result); 64 // create looper and handler 66 BLooper *looper = new BLooper; local 67 looper->Run(); 68 LooperQuitter quitter(looper); 71 CHK(looper->Lock()); 72 looper 123 BLooper *looper = new BLooper; local 140 BLooper *looper = new BLooper; local [all...] |
H A D | MessengerAssignmentTester.cpp | 64 Target() should return NULL and NULL for looper. 74 BLooper *looper; local 75 CHK(messenger.Target(&looper) == NULL); 76 CHK(looper == NULL); 90 // create looper 92 BLooper *looper = new BLooper; local 93 looper->Run(); 94 LooperQuitter quitter(looper); 96 BMessenger from(NULL, looper, &result); 101 CHK(resultLooper == looper); 127 BLooper *looper = new BLooper; local [all...] |
H A D | LockTargetTester.cpp | 76 looper is not locked 77 @results should lock the looper and return true. 82 BLooper *looper = new BLooper; local 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 i 102 BLooper *looper = new BLooper; local [all...] |
H A D | SMLooper.cpp | 137 if (SMLooper *looper = dynamic_cast<SMLooper*>(Looper())) { 138 looper->SetDeliveryTime(system_time()); 139 if (looper->ReplyDelay() > 0) 140 snooze(looper->ReplyDelay()); 145 if (SMLooper *looper = dynamic_cast<SMLooper*>(Looper())) 146 looper->SetReplyTime(system_time());
|
H A D | BMessengerTester.cpp | 39 team_id team, BLooper *looper = NULL, BHandler *handler = NULL, 46 CHK(resultLooper == looper); 68 Target() should return NULL and NULL for looper. 76 BLooper *looper; local 77 CHK(messenger.Target(&looper) == NULL); 78 CHK(looper == NULL); 83 BMessenger(const BHandler *handler, const BLooper *looper, 85 @case 1 handler is NULL, looper is NULL, result is NULL 87 Target() should return NULL and NULL for looper. 95 BLooper *looper; local 116 BLooper *looper; local 136 BLooper *looper = new BLooper; local 189 BLooper *looper = new BLooper; local 224 BLooper *looper = new BLooper; local 258 BLooper *looper = new BLooper; local 294 BLooper *looper; local 312 BLooper *looper = new BLooper; local [all...] |
H A D | LockTargetWithTimeoutTester.cpp | 75 looper is not locked 76 @results should lock the looper and return B_OK. 81 BLooper *looper = new BLooper; local 82 looper->Run(); 83 LooperQuitter quitter(looper); 84 BMessenger messenger(NULL, looper, &result); 86 CHK(looper->IsLocked() == true); 87 looper->Unlock(); 88 CHK(looper->IsLocked() == false); 94 looper i 101 BLooper *looper = new BLooper; local [all...] |
/haiku-fatelf/src/tests/system/kernel/ |
H A D | yield_test.cpp | 12 looper(void *) function 25 thread_id thread = spawn_thread(looper, "Real-Time Looper", B_REAL_TIME_PRIORITY, NULL);
|
/haiku-fatelf/src/add-ons/input_server/methods/canna/ |
H A D | CannaMethod.cpp | 44 BLooper *looper = NULL; local 45 cannaLooper.Target( &looper ); 46 if ( looper != NULL ) 51 if ( looper->Lock() ) 55 looper->Quit(); 89 CannaLooper *looper; local 91 looper = new CannaLooper( this ); 92 looper->Lock(); 93 err = looper->Init(); 94 looper [all...] |
/haiku-fatelf/src/tests/kits/app/bmessagerunner/ |
H A D | SetCountTester.cpp | 119 MessageRunnerTestLooper *looper = app.TestLooper(); local 120 BMessenger target(looper); 130 CHK(looper->CheckMessages(startTime, interval, count - 1)); 140 CHK(looper->CheckMessages(count - 1, startTime, interval, newCount)); 156 MessageRunnerTestLooper *looper = app.TestLooper(); local 157 BMessenger target(looper); 167 CHK(looper->CheckMessages(startTime, interval, 1)); 176 CHK(looper->CheckMessages(1, startTime, interval, newCount)); 192 MessageRunnerTestLooper *looper = app.TestLooper(); local 193 BMessenger target(looper); 230 MessageRunnerTestLooper *looper = app.TestLooper(); local 273 MessageRunnerTestLooper *looper = app.TestLooper(); local [all...] |
H A D | BMessageRunnerTester.cpp | 94 MessageRunnerTestLooper *looper = app.TestLooper(); local 95 BMessenger target(looper); 117 MessageRunnerTestLooper *looper = app.TestLooper(); local 118 BMessenger target(looper); 132 CHK(looper->CheckMessages(startTime, interval, count)); 148 MessageRunnerTestLooper *looper = app.TestLooper(); local 149 BMessenger target(looper); 159 CHK(looper->CheckMessages(startTime, interval, count)); 178 MessageRunnerTestLooper *looper = app.TestLooper(); local 179 BMessenger target(looper); 204 MessageRunnerTestLooper *looper = app.TestLooper(); local 225 MessageRunnerTestLooper *looper = app.TestLooper(); local 252 MessageRunnerTestLooper *looper = app.TestLooper(); local 306 MessageRunnerTestLooper *looper = app.TestLooper(); local 331 MessageRunnerTestLooper *looper = app.TestLooper(); local 365 MessageRunnerTestLooper *looper = app.TestLooper(); local 398 MessageRunnerTestLooper *looper = app.TestLooper(); local 427 MessageRunnerTestLooper *looper = app.TestLooper(); local 450 MessageRunnerTestLooper *looper = app.TestLooper(); local 480 MessageRunnerTestLooper *looper = app.TestLooper(); local 510 MessageRunnerTestLooper *looper = app.TestLooper(); local [all...] |
H A D | SetIntervalTester.cpp | 120 MessageRunnerTestLooper *looper = app.TestLooper(); local 121 BMessenger target(looper); 131 CHK(looper->CheckMessages(startTime, interval, count - 1)); 140 CHK(looper->CheckMessages(count - 1, startTime, newInterval, 1)); 157 MessageRunnerTestLooper *looper = app.TestLooper(); local 158 BMessenger target(looper); 168 CHK(looper->CheckMessages(startTime, interval, 1)); 177 CHK(looper->CheckMessages(1, startTime, newInterval, count - 1)); 194 MessageRunnerTestLooper *looper = app.TestLooper(); local 195 BMessenger target(looper); 235 MessageRunnerTestLooper *looper = app.TestLooper(); local 281 MessageRunnerTestLooper *looper = app.TestLooper(); local [all...] |
/haiku-fatelf/headers/os/support/ |
H A D | Autolock.h | 15 inline BAutolock(BLooper* looper); 33 BAutolock::BAutolock(BLooper *looper) argument 36 fLooper(looper), 37 fIsLocked(looper->Lock())
|
/haiku-fatelf/headers/private/app/ |
H A D | LooperList.h | 49 LooperData(BLooper* looper); 53 BLooper* looper; member in struct:BPrivate::BLooperList::LooperData 56 FindLooperPred(const BLooper* loop) : looper(loop) {} 58 const BLooper* looper; member in struct:BPrivate::BLooperList::FindLooperPred
|
/haiku-fatelf/src/apps/icon-o-matic/generic/gui/popup_control/ |
H A D | PopupWindow.cpp | 95 if (BLooper *looper = fControl->Looper()) 96 looper->PostMessage(MSG_POPUP_SHOWN, fControl); 104 if (BLooper *looper = fControl->Looper()) { 107 looper->PostMessage(&msg, fControl);
|
/haiku-fatelf/src/kits/midi2/ |
H A D | MidiRoster.cpp | 58 BMidiRosterLooper* looper = MidiRoster()->fLooper; local 59 if (looper->Lock()) { 60 endp = looper->NextEndpoint(id); 64 looper->Unlock(); 109 BMidiRosterLooper* looper = MidiRoster()->fLooper; local 110 if (looper->Lock()) { 111 endp = looper->FindEndpoint(id); 123 looper->Unlock(); 164 BMidiRosterLooper* looper = MidiRoster()->fLooper; local 165 if (looper 176 BMidiRosterLooper* looper = MidiRoster()->fLooper; local [all...] |
/haiku-fatelf/src/kits/network/ |
H A D | notifications.cpp | 49 const BLooper* looper) 51 const BMessenger target(handler, looper); 64 stop_watching_network(const BHandler* handler, const BLooper* looper) argument 66 const BMessenger target(handler, looper); 48 start_watching_network(uint32 flags, const BHandler* handler, const BLooper* looper) argument
|
/haiku-fatelf/src/tests/kits/game/chart/ |
H A D | ChartView.cpp | 92 BLooper *looper; local 95 Target(&looper); 96 if (looper) { 99 looper->PostMessage(&msg);
|
/haiku-fatelf/src/tests/kits/storage/testapps/ |
H A D | NodeMonitorTest.cpp | 71 // start looper 72 Looper& looper = *new Looper(nodeRef); local 73 looper.Run(); 90 // quit looper 91 looper.PostMessage(B_QUIT_REQUESTED); 92 wait_for_thread(looper.Thread(), &status);
|
/haiku-fatelf/src/kits/storage/ |
H A D | NodeMonitor.cpp | 55 const BLooper *looper) 57 return watch_volume(volume, flags, BMessenger(handler, looper)); 145 \param handler The target handler. May be \c NULL, if \a looper is not 146 \c NULL. Then the preferred handler of the looper is targeted. 147 \param looper The target looper. May be \c NULL, if \a handler is not 148 \c NULL. Then the handler's looper is the target looper. 153 const BLooper *looper) 155 return watch_node(node, flags, BMessenger(handler, looper)); 54 watch_volume(dev_t volume, uint32 flags, const BHandler *handler, const BLooper *looper) argument 152 watch_node(const node_ref *node, uint32 flags, const BHandler *handler, const BLooper *looper) argument 185 stop_watching(const BHandler *handler, const BLooper *looper) argument [all...] |