Lines Matching refs:runnable
50 shared_ptr<LocRunnable> runnable = mRunnable.lock(); in ~LocThreadDelegate() local
51 if (nullptr != runnable) { in ~LocThreadDelegate()
52 runnable->interrupt(); in ~LocThreadDelegate()
55 inline static LocThreadDelegate* create(const char* tName, shared_ptr<LocRunnable> runnable);
60 LocThreadDelegate* LocThreadDelegate::create(const char* tName, shared_ptr<LocRunnable> runnable) { in create() argument
63 if (nullptr != runnable) { in create()
74 threadDelegate = new LocThreadDelegate(lname, runnable); in create()
80 LocThreadDelegate::LocThreadDelegate(const string tName, shared_ptr<LocRunnable> runnable) : in LocThreadDelegate() argument
81 mRunnable(runnable), in LocThreadDelegate()
82 mThread([tName, runnable] { in LocThreadDelegate()
84 runnable->prerun(); in LocThreadDelegate()
85 while (runnable->run()); in LocThreadDelegate()
86 runnable->postrun(); in LocThreadDelegate()
94 bool LocThread::start(const char* tName, shared_ptr<LocRunnable> runnable) { in start() argument
97 mThread = LocThreadDelegate::create(tName, runnable); in start()