Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
VLMC
Commits
5b3a8cf5
Commit
5b3a8cf5
authored
Dec 22, 2009
by
Hugo Beauzee-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed deadlock in SettingsManager
parent
c6d71cae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
src/Configuration/SettingsManager.cpp
src/Configuration/SettingsManager.cpp
+5
-1
No files found.
src/Configuration/SettingsManager.cpp
View file @
5b3a8cf5
...
...
@@ -64,8 +64,12 @@ void SettingsManager::setValue( const QString& part , const QString& key, const
{
m_globalLock
.
lockForRead
();
if
(
!
m_tempData
.
contains
(
part
)
)
{
m_globalLock
.
unlock
();
addNewSettingsPart
(
part
);
m_globalLock
.
unlock
();
}
else
m_globalLock
.
unlock
();
QWriteLocker
lock
(
&
m_globalLock
);
SettingsPart
*
tmp
=
m_tempData
[
part
];
SettingsPart
::
ConfigPair
::
iterator
it
=
tmp
->
m_data
.
find
(
key
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment