diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2017-06-21 13:38:49 +0300 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2017-06-21 14:30:09 +0300 |
commit | 7e8bdadb91010b83cea7e8bad7a4e7a2488a91f6 (patch) | |
tree | e2ed9939f3a1e60fde59536a51336e70749311f7 /test/util/thread_local.test.cpp | |
parent | 1427628c56d336a21c93ef0a1c57fbfabd98dc5e (diff) | |
download | qtlocation-mapboxgl-7e8bdadb91010b83cea7e8bad7a4e7a2488a91f6.tar.gz |
[core] Rename ThreadedObject to Thread
Now that the old Thread class is gone, we can give ThreadedObject
a better name.
Diffstat (limited to 'test/util/thread_local.test.cpp')
-rw-r--r-- | test/util/thread_local.test.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/util/thread_local.test.cpp b/test/util/thread_local.test.cpp index b2eae74c5f..0590e8b4dc 100644 --- a/test/util/thread_local.test.cpp +++ b/test/util/thread_local.test.cpp @@ -1,5 +1,5 @@ #include <mbgl/util/run_loop.hpp> -#include <mbgl/util/threaded_object.hpp> +#include <mbgl/util/thread.hpp> #include <mbgl/util/thread_local.hpp> #include <mbgl/test/util.hpp> @@ -39,9 +39,9 @@ TEST(ThreadLocalStorage, Basic) { int number2 = 2; int number3 = 3; - ThreadedObject<TestThread> thread1("Test", &number1); - ThreadedObject<TestThread> thread2("Test", &number2); - ThreadedObject<TestThread> thread3("Test", &number3); + Thread<TestThread> thread1("Test", &number1); + Thread<TestThread> thread2("Test", &number2); + Thread<TestThread> thread3("Test", &number3); auto thread1Ref = thread1.actor(); auto thread2Ref = thread2.actor(); @@ -98,8 +98,8 @@ TEST(ThreadLocalStorage, AutoReclaim) { auto dtorCounter1 = new DtorCounter{ &counter }; auto dtorCounter2 = new DtorCounter{ &counter }; - auto thread1 = std::make_unique<ThreadedObject<TestThreadReclaim>>("Test", dtorCounter1); - auto thread2 = std::make_unique<ThreadedObject<TestThreadReclaim>>("Test", dtorCounter2); + auto thread1 = std::make_unique<Thread<TestThreadReclaim>>("Test", dtorCounter1); + auto thread2 = std::make_unique<Thread<TestThreadReclaim>>("Test", dtorCounter2); thread1.reset(); thread2.reset(); |