[android] Fix default RunLoop not stopping
stop() for default RunLoop is only used by unit tests and we need to wake the ALooper to get past run().
This commit is contained in:
@@ -38,6 +38,10 @@ public:
|
||||
|
||||
Milliseconds processRunnables();
|
||||
|
||||
ALooper* loop = nullptr;
|
||||
RunLoop* runLoop = nullptr;
|
||||
util::Atomic<bool> running;
|
||||
|
||||
private:
|
||||
friend RunLoop;
|
||||
|
||||
@@ -46,9 +50,6 @@ private:
|
||||
JNIEnv *env = nullptr;
|
||||
bool detach = false;
|
||||
|
||||
ALooper* loop = nullptr;
|
||||
util::Atomic<bool> running;
|
||||
|
||||
std::recursive_mutex mtx;
|
||||
std::list<Runnable*> runnables;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user