From 55c31493aff4f44939087970b1fc4d9a1edbd72c Mon Sep 17 00:00:00 2001 From: "Thiago Marcos P. Santos" Date: Wed, 20 Jan 2016 17:27:35 +0200 Subject: [core] Add ref counting to the main loop Should not be used at all, added for a corner case on OSX network backend where the request is processed on a worker thread managed by OSX and we need to wait for that reply before destroying the thread that pushed the request. --- include/mbgl/util/run_loop.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/mbgl/util/run_loop.hpp') diff --git a/include/mbgl/util/run_loop.hpp b/include/mbgl/util/run_loop.hpp index fef00743f7..e3d9248f84 100644 --- a/include/mbgl/util/run_loop.hpp +++ b/include/mbgl/util/run_loop.hpp @@ -41,6 +41,9 @@ public: void runOnce(); void stop(); + void ref(); + void unref(); + // So far only needed by the libcurl backend. void addWatch(int fd, Event, std::function&& callback); void removeWatch(int fd); -- cgit v1.2.1