Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
ffe5a11f
Commit
ffe5a11f
authored
Aug 18, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Win32: support vlc_cond_wait() with a static mutex
parent
a0447f78
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
src/win32/thread.c
src/win32/thread.c
+4
-6
No files found.
src/win32/thread.c
View file @
ffe5a11f
...
...
@@ -281,13 +281,12 @@ void vlc_cond_wait (vlc_cond_t *p_condvar, vlc_mutex_t *p_mutex)
{
DWORD
result
;
assert
(
p_mutex
->
dynamic
);
/* TODO */
do
{
vlc_testcancel
();
LeaveCriticalSection
(
&
p_mutex
->
mutex
);
vlc_mutex_unlock
(
p_
mutex
);
result
=
vlc_WaitForSingleObject
(
p_condvar
->
handle
,
INFINITE
);
EnterCriticalSection
(
&
p_mutex
->
mutex
);
vlc_mutex_lock
(
p_
mutex
);
}
while
(
result
==
WAIT_IO_COMPLETION
);
...
...
@@ -299,7 +298,6 @@ int vlc_cond_timedwait (vlc_cond_t *p_condvar, vlc_mutex_t *p_mutex,
{
DWORD
result
;
assert
(
p_mutex
->
dynamic
);
/* TODO */
do
{
vlc_testcancel
();
...
...
@@ -320,9 +318,9 @@ int vlc_cond_timedwait (vlc_cond_t *p_condvar, vlc_mutex_t *p_mutex,
total
=
0
;
DWORD
delay
=
(
total
>
0x7fffffff
)
?
0x7fffffff
:
total
;
LeaveCriticalSection
(
&
p_mutex
->
mutex
);
vlc_mutex_unlock
(
p_
mutex
);
result
=
vlc_WaitForSingleObject
(
p_condvar
->
handle
,
delay
);
EnterCriticalSection
(
&
p_mutex
->
mutex
);
vlc_mutex_lock
(
p_
mutex
);
}
while
(
result
==
WAIT_IO_COMPLETION
);
...
...
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