thorvg: Re-enable thread support, made opt-in upstream

Fixes #87788.
Fixes #87962.
This commit is contained in:
Rémi Verschelde 2024-02-07 12:02:57 +01:00
parent 7223c5b54a
commit 2e32b93165
No known key found for this signature in database
GPG key ID: C3336907360768E1
3 changed files with 5 additions and 3 deletions

View file

@ -5,6 +5,7 @@
#define THORVG_SVG_LOADER_SUPPORT
#define THORVG_PNG_LOADER_SUPPORT
#define THORVG_JPG_LOADER_SUPPORT
#define THORVG_THREAD_SUPPORT
// For internal debugging:
//#define THORVG_LOG_ENABLED

View file

@ -38,10 +38,10 @@ namespace tvg {
{
Key* key = nullptr;
ScopedLock(Key& key)
ScopedLock(Key& p_key)
{
key.mtx.lock();
this->key = &key;
p_key.mtx.lock();
key = &p_key;
}
~ScopedLock()

View file

@ -38,6 +38,7 @@ cat << EOF > ../inc/config.h
#define THORVG_SVG_LOADER_SUPPORT
#define THORVG_PNG_LOADER_SUPPORT
#define THORVG_JPG_LOADER_SUPPORT
#define THORVG_THREAD_SUPPORT
// For internal debugging:
//#define THORVG_LOG_ENABLED