summaryrefslogtreecommitdiff
path: root/include/mbgl/platform
diff options
context:
space:
mode:
authorŁukasz Paczos <lukas.paczos@gmail.com>2019-05-21 12:45:01 +0200
committerŁukasz Paczos <lukasz.paczos@mapbox.com>2019-05-22 15:52:55 +0200
commit7d6255c8605bd18a7c7d90de19346392a51c90b7 (patch)
tree65b52ac4f4b4e64598dcc885a161251d62c5d38e /include/mbgl/platform
parente79080771b36ad3a4be0dee8ca12032cd1c8488a (diff)
downloadqtlocation-mapboxgl-7d6255c8605bd18a7c7d90de19346392a51c90b7.tar.gz
[core] option to perform platform specific operations when creating/destroying core threads
Diffstat (limited to 'include/mbgl/platform')
-rw-r--r--include/mbgl/platform/thread.hpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/mbgl/platform/thread.hpp b/include/mbgl/platform/thread.hpp
new file mode 100644
index 0000000000..72899a4fd8
--- /dev/null
+++ b/include/mbgl/platform/thread.hpp
@@ -0,0 +1,13 @@
+#pragma once
+
+namespace mbgl {
+namespace platform {
+
+// Called when a thread is created
+void attachThread();
+
+// Called when a thread is destroyed
+void detachThread();
+
+} // namespace platform
+} // namespace mbgl