forked from external-repos/squoosh
Switch vals to thread_locals
It's not possible to share them across threads, so in case we decide to use multithreading in the future, it's best to mark them as thread_local right away, even if it's a no-op right now.
This commit is contained in:
committed by
Ingvar Stepanyan
parent
f1cd6a87da
commit
e342766cbf
@@ -14,7 +14,7 @@ int version() {
|
||||
(((LIQ_VERSION / 1) % 100) << 0);
|
||||
}
|
||||
|
||||
const val Uint8ClampedArray = val::global("Uint8ClampedArray");
|
||||
thread_local const val Uint8ClampedArray = val::global("Uint8ClampedArray");
|
||||
|
||||
#define liq_ptr(T) std::unique_ptr<T, std::integral_constant<decltype(&T##_destroy), T##_destroy>>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user