summaryrefslogtreecommitdiff
path: root/src/mbgl/util/thread.hpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2015-04-22 20:32:46 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2015-04-28 14:32:24 -0400
commit5f76ab270e8a5015f87ebdcb511f54feef1cedd5 (patch)
tree80765c210cbcf0753cbad6ff15a49c6394d7a613 /src/mbgl/util/thread.hpp
parentf27641bcb514b0df54d54c32956fdeda3d58f10a (diff)
downloadqtlocation-mapboxgl-5f76ab270e8a5015f87ebdcb511f54feef1cedd5.tar.gz
Encapsulate access to Thread's uv_loop_t
The Thread object gets access via its constructor. No other object should have access; off-thread objects can't safely do anything with it except pass it back to the thread.
Diffstat (limited to 'src/mbgl/util/thread.hpp')
-rw-r--r--src/mbgl/util/thread.hpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/mbgl/util/thread.hpp b/src/mbgl/util/thread.hpp
index 036ac33c97..9a1a7b0137 100644
--- a/src/mbgl/util/thread.hpp
+++ b/src/mbgl/util/thread.hpp
@@ -76,8 +76,6 @@ public:
// destroying the Thread.
void pumpingStop(std::function<void ()>);
- uv_loop_t* get() { return loop->get(); }
-
private:
Thread(const Thread&) = delete;
Thread(Thread&&) = delete;