summaryrefslogtreecommitdiff
path: root/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 /platform
parente79080771b36ad3a4be0dee8ca12032cd1c8488a (diff)
downloadqtlocation-mapboxgl-7d6255c8605bd18a7c7d90de19346392a51c90b7.tar.gz
[core] option to perform platform specific operations when creating/destroying core threads
Diffstat (limited to 'platform')
-rw-r--r--platform/android/src/thread.cpp7
-rw-r--r--platform/darwin/src/nsthread.mm7
-rw-r--r--platform/default/src/mbgl/util/thread.cpp7
-rw-r--r--platform/qt/src/thread.cpp7
4 files changed, 28 insertions, 0 deletions
diff --git a/platform/android/src/thread.cpp b/platform/android/src/thread.cpp
index c708dfdceb..721c63a531 100644
--- a/platform/android/src/thread.cpp
+++ b/platform/android/src/thread.cpp
@@ -1,5 +1,6 @@
#include <mbgl/util/logging.hpp>
#include <mbgl/util/platform.hpp>
+#include <mbgl/platform/thread.hpp>
#include <sys/prctl.h>
#include <sys/resource.h>
@@ -33,5 +34,11 @@ void makeThreadLowPriority() {
setpriority(PRIO_PROCESS, 0, 19);
}
+void attachThread() {
+}
+
+void detachThread() {
+}
+
} // namespace platform
} // namespace mbgl
diff --git a/platform/darwin/src/nsthread.mm b/platform/darwin/src/nsthread.mm
index 458db968d8..f7edcdf5d6 100644
--- a/platform/darwin/src/nsthread.mm
+++ b/platform/darwin/src/nsthread.mm
@@ -1,6 +1,7 @@
#import <Foundation/Foundation.h>
#include <mbgl/util/platform.hpp>
+#include <mbgl/platform/thread.hpp>
#include <pthread.h>
@@ -23,5 +24,11 @@ void makeThreadLowPriority() {
[[NSThread currentThread] setThreadPriority:0.0];
}
+void attachThread() {
+}
+
+void detachThread() {
+}
+
}
}
diff --git a/platform/default/src/mbgl/util/thread.cpp b/platform/default/src/mbgl/util/thread.cpp
index c7c79b4fb0..28772d9561 100644
--- a/platform/default/src/mbgl/util/thread.cpp
+++ b/platform/default/src/mbgl/util/thread.cpp
@@ -1,4 +1,5 @@
#include <mbgl/util/platform.hpp>
+#include <mbgl/platform/thread.hpp>
#include <mbgl/util/logging.hpp>
#include <string>
@@ -33,5 +34,11 @@ void makeThreadLowPriority() {
}
}
+void attachThread() {
+}
+
+void detachThread() {
+}
+
} // namespace platform
} // namespace mbgl
diff --git a/platform/qt/src/thread.cpp b/platform/qt/src/thread.cpp
index ade3629b63..103b6d74f1 100644
--- a/platform/qt/src/thread.cpp
+++ b/platform/qt/src/thread.cpp
@@ -1,4 +1,5 @@
#include <mbgl/util/platform.hpp>
+#include <mbgl/platform/thread.hpp>
#include <string>
@@ -15,5 +16,11 @@ void setCurrentThreadName(const std::string&) {
void makeThreadLowPriority() {
}
+void attachThread() {
+}
+
+void detachThread() {
+}
+
} // namespace platform
} // namespace mbgl