Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
8ff3851c
Commit
8ff3851c
authored
Jul 30, 2002
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* include/threads_funcs.h: fixed the --fast-mutex option.
parent
70630f32
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
include/threads_funcs.h
include/threads_funcs.h
+4
-2
No files found.
include/threads_funcs.h
View file @
8ff3851c
...
...
@@ -3,7 +3,7 @@
* This header provides a portable threads implementation.
*****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN
* $Id: threads_funcs.h,v 1.4.2.
3 2002/07/29 16:12:24
gbazin Exp $
* $Id: threads_funcs.h,v 1.4.2.
4 2002/07/30 07:54:05
gbazin Exp $
*
* Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@via.ecp.fr>
...
...
@@ -645,7 +645,7 @@ static inline int _vlc_cond_wait( char * psz_file, int i_line,
/* Increase our wait count */
p_condvar
->
i_waiting_threads
++
;
if
(
p_main
->
p_sys
->
SignalObjectAndWait
)
if
(
p_main
->
p_sys
->
SignalObjectAndWait
&&
p_mutex
->
mutex
)
/* It is only possible to atomically release the mutex and initiate the
* waiting on WinNT/2K/XP. Win9x doesn't have SignalObjectAndWait(). */
p_main
->
p_sys
->
SignalObjectAndWait
(
p_mutex
->
mutex
,
...
...
@@ -656,6 +656,8 @@ static inline int _vlc_cond_wait( char * psz_file, int i_line,
LeaveCriticalSection
(
&
p_mutex
->
csection
);
WaitForSingleObject
(
p_condvar
->
event
,
INFINITE
);
}
p_condvar
->
i_waiting_threads
--
;
}
else
if
(
p_main
->
p_sys
->
i_win9x_cv
==
1
)
{
...
...
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