Asynchronous GeometryTile deletion (#2051)

Co-authored-by: Tim Sylvester <tim@wetdogweather.com>
This commit is contained in:
mwilsnd
2024-02-28 17:18:08 -05:00
committed by GitHub
parent e3cbdb63a8
commit 4fff8a5d33
80 changed files with 1180 additions and 334 deletions

View File

@@ -10,6 +10,7 @@
#include "thread.h"
#define StorageToThreadInfo reinterpret_cast<THREAD_INFO*&>(storage)
#define StorageToConstThreadInfo reinterpret_cast<THREAD_INFO* const&>(storage)
namespace mbgl {
namespace util {
@@ -47,8 +48,8 @@ ThreadLocalBase::~ThreadLocalBase() {
}
}
void* ThreadLocalBase::get() {
return TlsGetValue(StorageToThreadInfo->key);
void* ThreadLocalBase::get() const {
return TlsGetValue(StorageToConstThreadInfo->key);
}
void ThreadLocalBase::set(void* ptr) {