Skip to content

Commit

Permalink
Merge pull request #88053 from akien-mga/thorvg-reenable-thread-support
Browse files Browse the repository at this point in the history
thorvg: Re-enable thread support, made opt-in upstream
  • Loading branch information
akien-mga authored Feb 7, 2024
2 parents 7223c5b + 2e32b93 commit 36e943b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions thirdparty/thorvg/inc/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions thirdparty/thorvg/src/common/tvgLock.h
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
1 change: 1 addition & 0 deletions thirdparty/thorvg/update-thorvg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 36e943b

Please sign in to comment.