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
db6209ac
Commit
db6209ac
authored
Jun 21, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32: do not straddle on POSIX threads symbols
parent
e0e73f09
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
src/win32/thread.c
src/win32/thread.c
+7
-7
No files found.
src/win32/thread.c
View file @
db6209ac
...
...
@@ -162,9 +162,9 @@ void vlc_mutex_unlock (vlc_mutex_t *p_mutex)
/*** Condition variables ***/
enum
{
CLOCK_STATIC
=
0
,
/* must be zero for VLC_STATIC_COND */
CLOCK_MONOTONIC
,
CLOCK_REALTIME
,
VLC_
CLOCK_STATIC
=
0
,
/* must be zero for VLC_STATIC_COND */
VLC_
CLOCK_MONOTONIC
,
VLC_
CLOCK_REALTIME
,
};
static
void
vlc_cond_init_common
(
vlc_cond_t
*
p_condvar
,
unsigned
clock
)
...
...
@@ -178,12 +178,12 @@ static void vlc_cond_init_common (vlc_cond_t *p_condvar, unsigned clock)
void
vlc_cond_init
(
vlc_cond_t
*
p_condvar
)
{
vlc_cond_init_common
(
p_condvar
,
CLOCK_MONOTONIC
);
vlc_cond_init_common
(
p_condvar
,
VLC_
CLOCK_MONOTONIC
);
}
void
vlc_cond_init_daytime
(
vlc_cond_t
*
p_condvar
)
{
vlc_cond_init_common
(
p_condvar
,
CLOCK_REALTIME
);
vlc_cond_init_common
(
p_condvar
,
VLC_
CLOCK_REALTIME
);
}
void
vlc_cond_destroy
(
vlc_cond_t
*
p_condvar
)
...
...
@@ -243,10 +243,10 @@ int vlc_cond_timedwait (vlc_cond_t *p_condvar, vlc_mutex_t *p_mutex,
mtime_t
total
;
switch
(
p_condvar
->
clock
)
{
case
CLOCK_MONOTONIC
:
case
VLC_
CLOCK_MONOTONIC
:
total
=
mdate
();
break
;
case
CLOCK_REALTIME
:
/* FIXME? sub-second precision */
case
VLC_
CLOCK_REALTIME
:
/* FIXME? sub-second precision */
total
=
CLOCK_FREQ
*
time
(
NULL
);
break
;
default:
...
...
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