History

Replaced regular mutex with a read write one to improve performance

ksuprynowicz committed 4 years ago

Commit 5a9b0cc1 parent ad57a5e2 files · +11 −6Browse files

Showing the changes to libraries/script-engine/src/qtscript/ScriptEngineQtScript.h (1 of 2 files). Show all

Unified · Split

libraries/script-engine/src/qtscript/ScriptEngineQtScript.h+1−1
@@ -181,7 +181,7 @@ protected: · 180 unmodified lines
181 181
182 QPointer<ScriptManager> _scriptManager;182 QPointer<ScriptManager> _scriptManager;
183 183
184 mutable QMutex _customTypeProtect;184 mutable QReadWriteLock _customTypeProtect { QReadWriteLock::Recursive };
185 CustomMarshalMap _customTypes;185 CustomMarshalMap _customTypes;
186 CustomPrototypeMap _customPrototypes;186 CustomPrototypeMap _customPrototypes;
187 ScriptValue _nullValue;187 ScriptValue _nullValue;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t