Lines Matching refs:looper
61 BMessenger::BMessenger(const BHandler* handler, const BLooper* looper,
68 _InitData(handler, looper, _result);
117 BLooper* looper = NULL;
118 Target(&looper);
119 if (looper != NULL && looper->Lock()) {
120 if (looper->fMsgPort == fPort)
123 looper->Unlock();
134 BLooper* looper = NULL;
135 Target(&looper);
136 if (looper == NULL)
139 status_t result = looper->LockWithTimeout(timeout);
141 if (result == B_OK && looper->fMsgPort != fPort) {
142 looper->Unlock();
232 BMessenger::SetTo(const BHandler* handler, const BLooper* looper)
235 _InitData(handler, looper, &result);
287 /*! Sets the messenger's team, target looper port and handler token.
292 \param port The target looper port.
377 looper is targeted. If no looper is supplied the looper the given handler
379 already belong to a looper. If both are supplied the handler must actually
380 belong to looper.
383 \param looper The target looper. May be \c NULL.
388 BMessenger::_InitData(const BHandler* handler, const BLooper* looper,
391 status_t result = (handler != NULL || looper != NULL) ? B_OK : B_BAD_VALUE;
394 // BHandler is given, check/retrieve the looper.
395 if (looper != NULL) {
396 if (handler->Looper() != looper)
399 looper = handler->Looper();
400 if (looper == NULL)
408 if (locker.IsLocked() && gLooperList.IsLooperValid(looper)) {
409 fPort = looper->fMsgPort;
413 fTeam = looper->Team();