diff options
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 |
commit | 7d6255c8605bd18a7c7d90de19346392a51c90b7 (patch) | |
tree | 65b52ac4f4b4e64598dcc885a161251d62c5d38e /include/mbgl/platform | |
parent | e79080771b36ad3a4be0dee8ca12032cd1c8488a (diff) | |
download | qtlocation-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.hpp | 13 |
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 |