Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
9ad7729f
Commit
9ad7729f
authored
Aug 22, 2009
by
Erwan Tulou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
skins2: lock needed for updating the async queue (multi-treaded context)
parent
64a6e968
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
modules/gui/skins2/commands/async_queue.cpp
modules/gui/skins2/commands/async_queue.cpp
+4
-4
No files found.
modules/gui/skins2/commands/async_queue.cpp
View file @
9ad7729f
...
...
@@ -74,19 +74,21 @@ void AsyncQueue::destroy( intf_thread_t *pIntf )
void
AsyncQueue
::
push
(
const
CmdGenericPtr
&
rcCommand
,
bool
removePrev
)
{
vlc_mutex_lock
(
&
m_lock
);
if
(
removePrev
)
{
// Remove the commands of the same type
remove
(
rcCommand
.
get
()
->
getType
(),
rcCommand
);
}
m_cmdList
.
push_back
(
rcCommand
);
vlc_mutex_unlock
(
&
m_lock
);
}
void
AsyncQueue
::
remove
(
const
string
&
rType
,
const
CmdGenericPtr
&
rcCommand
)
{
vlc_mutex_lock
(
&
m_lock
);
list
<
CmdGenericPtr
>::
iterator
it
;
for
(
it
=
m_cmdList
.
begin
();
it
!=
m_cmdList
.
end
();
it
++
)
{
...
...
@@ -104,8 +106,6 @@ void AsyncQueue::remove( const string &rType, const CmdGenericPtr &rcCommand )
}
}
}
vlc_mutex_unlock
(
&
m_lock
);
}
...
...
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