Searched refs:looper (Results 1 - 25 of 85) sorted by relevance

1234

/haiku/src/kits/app/
H A DLooperList.cpp58 BLooperList::AddLooper(BLooper* looper) argument
62 if (!IsLooperValid(looper)) {
66 fData.push_back(LooperData(looper));
67 looper->Lock();
69 i->looper = looper;
70 looper->Lock();
77 BLooperList::IsLooperValid(const BLooper* looper) argument
83 FindLooperPred(looper)) != fData.end();
88 BLooperList::RemoveLooper(BLooper* looper) argument
132 BLooper* looper = NULL; local
146 BLooper* looper = NULL; local
162 BLooper* looper = NULL; local
178 BLooper* looper = NULL; local
222 LooperData(BLooper* looper) argument
[all...]
H A DMessenger.cpp61 BMessenger::BMessenger(const BHandler* handler, const BLooper* looper, argument
68 _InitData(handler, looper, _result);
117 BLooper* looper = NULL; local
118 Target(&looper);
119 if (looper != NULL && looper->Lock()) {
120 if (looper->fMsgPort == fPort)
123 looper->Unlock();
134 BLooper* looper = NULL; local
135 Target(&looper);
232 SetTo(const BHandler* handler, const BLooper* looper) argument
388 _InitData(const BHandler* handler, const BLooper* looper, status_t* _result) argument
[all...]
/haiku/src/tests/kits/app/blooper/
H A DQuitTest.cpp25 @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/src/tests/kits/app/messaging/
H A DHandlerLooperMessageTest.cpp24 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/src/tests/kits/app/bmessenger/
H A DSMRemoteTargetApp.cpp28 // 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 DHelpers.h26 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 DTargetTester.cpp50 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 DMessengerAssignmentTester.cpp64 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 DLockTargetTester.cpp76 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 DSMLooper.cpp137 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 DBMessengerTester.cpp39 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 DLockTargetWithTimeoutTester.cpp75 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/src/tests/system/kernel/
H A Dyield_test.cpp12 looper(void *) function
25 thread_id thread = spawn_thread(looper, "Real-Time Looper", B_REAL_TIME_PRIORITY, NULL);
/haiku/src/tests/kits/app/bmessagerunner/
H A DSetCountTester.cpp119 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 DBMessageRunnerTester.cpp94 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 DSetIntervalTester.cpp120 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/src/apps/icon-o-matic/generic/gui/popup_control/
H A DPopupWindow.cpp95 if (BLooper *looper = fControl->Looper())
96 looper->PostMessage(MSG_POPUP_SHOWN, fControl);
104 if (BLooper *looper = fControl->Looper()) {
107 looper->PostMessage(&msg, fControl);
/haiku/src/tests/kits/game/chart/
H A DChartView.cpp92 BLooper *looper; local
95 Target(&looper);
96 if (looper) {
99 looper->PostMessage(&msg);
/haiku/src/tests/kits/storage/testapps/
H A DNodeMonitorTest.cpp71 // 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/headers/private/app/
H A DLooperList.h49 LooperData(BLooper* looper);
53 BLooper* looper; member in struct:BPrivate::BLooperList::LooperData
57 FindLooperPred(const BLooper* loop) : looper(loop) {}
59 const BLooper* looper; member in struct:BPrivate::BLooperList::FindLooperPred
/haiku/src/kits/midi2/
H A DMidiRoster.cpp68 BMidiRosterLooper* looper = MidiRoster()->fLooper; local
69 if (looper->Lock()) {
70 endp = looper->NextEndpoint(id);
74 looper->Unlock();
119 BMidiRosterLooper* looper = MidiRoster()->fLooper; local
120 if (looper->Lock()) {
121 endp = looper->FindEndpoint(id);
133 looper->Unlock();
174 BMidiRosterLooper* looper = MidiRoster()->fLooper; local
175 if (looper
186 BMidiRosterLooper* looper = MidiRoster()->fLooper; local
[all...]
/haiku/src/kits/network/libnetapi/
H A Dnotifications.cpp49 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/headers/os/support/
H A DAutolock.h15 inline BAutolock(BLooper* looper);
33 BAutolock::BAutolock(BLooper *looper) argument
36 fLooper(looper),
37 fIsLocked(looper->Lock())
/haiku/src/kits/storage/
H A DNodeMonitor.cpp43 const BLooper* looper)
45 return watch_volume(volume, flags, BMessenger(handler, looper));
92 // Subscribes or unsubscribes a handler or looper to node and/or mount
96 const BLooper* looper)
98 return watch_node(node, flags, BMessenger(handler, looper));
119 stop_watching(const BHandler* handler, const BLooper* looper) argument
121 return stop_watching(BMessenger(handler, looper));
42 watch_volume(dev_t volume, uint32 flags, const BHandler* handler, const BLooper* looper) argument
95 watch_node(const node_ref* node, uint32 flags, const BHandler* handler, const BLooper* looper) argument
/haiku/headers/os/net/
H A DNetworkNotifications.h45 const BLooper* looper = NULL);
49 const BLooper* looper = NULL);

Completed in 284 milliseconds

1234