最終更新:2015-09-01 (火) 10:49:44 (3153d)  

AOSP/system/core/include/utils?
AOSP/system/core/include/utils/Thread.h
Top / AOSP / system / core / include / utils / Thread.h

class Thread : virtual public RefBase?

Thread::run?

  • Start the thread in threadLoop() which needs to be implemented.

threadLoop

  • private:
        // Derived class must implement threadLoop(). The thread starts its life
        // here. There are two ways of using the Thread object:
        // 1) loop: if threadLoop() returns true, it will be called again if
        //          requestExit() wasn't called.
        // 2) once: if threadLoop() returns false, the thread will exit upon return.
        virtual bool        threadLoop() = 0;