[android] Replace util::Thread with util::ThreadedObject

This commit is contained in:
Thiago Marcos P. Santos
2017-06-16 16:06:34 +03:00
parent 476975dbf3
commit c247a4b10c
4 changed files with 26 additions and 18 deletions

View File

@@ -15,7 +15,7 @@ struct ALooper;
namespace mbgl {
namespace util {
template <typename T> class Thread;
template <typename T> class ThreadedObject;
class Alarm;
class RunLoop::Impl {
@@ -53,7 +53,7 @@ private:
JNIEnv *env = nullptr;
bool detach = false;
std::unique_ptr<Thread<Alarm>> alarm;
std::unique_ptr<ThreadedObject<Alarm>> alarm;
std::recursive_mutex mtx;
std::list<Runnable*> runnables;