Merge pull request #88053 from akien-mga/thorvg-reenable-thread-support

thorvg: Re-enable thread support, made opt-in upstream
This commit is contained in:
Rémi Verschelde 2024-02-07 12:26:12 +01:00 committed by GitHub
commit 36e943b6b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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