summaryrefslogtreecommitdiff
path: root/include/mbgl/actor/actor.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/actor/actor.hpp')
-rw-r--r--include/mbgl/actor/actor.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/mbgl/actor/actor.hpp b/include/mbgl/actor/actor.hpp
index a0df19208e..93de4a948f 100644
--- a/include/mbgl/actor/actor.hpp
+++ b/include/mbgl/actor/actor.hpp
@@ -45,6 +45,11 @@ namespace mbgl {
purpose of the actor model: prohibiting direct concurrent access to shared state.
*/
+
+namespace util {
+template <class> class Thread;
+} // namespace util
+
template <class Object>
class Actor : public util::noncopyable {
public:
@@ -91,6 +96,9 @@ public:
}
private:
+ template<typename U>
+ friend class util::Thread;
+
std::shared_ptr<Mailbox> mailbox;
Object object;
};