Пример #1
0
Handler::Handler(Looper& looper) {
    mMessageQueue = &looper.myMessageQueue();
    mRunnableQueue = &looper.myRunnableQueue();
}
Пример #2
0
Handler::Handler() {
    Looper* looper = Looper::myLooper();
    Assert::assertNotNull(looper);
    mMessageQueue = &looper->myMessageQueue();
    mRunnableQueue = &looper->myRunnableQueue();
}