[android] change lock scope in run_loop to avoid deadlocks. simplify as

well
This commit is contained in:
Ivo van Dongen
2019-02-12 11:43:18 +02:00
committed by Ivo van Dongen
parent ca7d9422b6
commit 1fadf56368
4 changed files with 31 additions and 46 deletions

View File

@@ -13,7 +13,6 @@ class AsyncTask::Impl : public RunLoop::Impl::Runnable {
public:
Impl(std::function<void()>&& fn)
: queued(true), task(std::move(fn)) {
loop->initRunnable(this);
}
~Impl() {