diff --git a/src/common/tvgLock.h b/src/common/tvgLock.h index ea78e046..5dd3d5a6 100644 --- a/src/common/tvgLock.h +++ b/src/common/tvgLock.h @@ -38,10 +38,10 @@ namespace tvg { { Key* key = nullptr; - ScopedLock(Key& key) + ScopedLock(Key& k) { - key.mtx.lock(); - this->key = &key; + k.mtx.lock(); + key = &k; } ~ScopedLock() @@ -67,4 +67,5 @@ namespace tvg { #endif //THORVG_THREAD_SUPPORT -#endif //_TVG_LOCK_H_ \ No newline at end of file +#endif //_TVG_LOCK_H_ +