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
04e1981b
Commit
04e1981b
authored
Jul 23, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Win32: fix warnings
parent
8e8ef5d3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
src/win32/thread.c
src/win32/thread.c
+10
-7
No files found.
src/win32/thread.c
View file @
04e1981b
...
...
@@ -143,6 +143,8 @@ DWORD WaitForMultipleObjectsEx (DWORD nCount, const HANDLE *lpHandles,
static
vlc_mutex_t
super_mutex
;
static
vlc_cond_t
super_variable
;
BOOL
WINAPI
DllMain
(
HINSTANCE
,
DWORD
,
LPVOID
);
BOOL
WINAPI
DllMain
(
HINSTANCE
hinstDll
,
DWORD
fdwReason
,
LPVOID
lpvReserved
)
{
(
void
)
hinstDll
;
...
...
@@ -326,14 +328,13 @@ int vlc_cond_timedwait (vlc_cond_t *p_condvar, vlc_mutex_t *p_mutex,
mtime_t
total
;
switch
(
p_condvar
->
clock
)
{
case
CLOCK_MONOTONIC
:
total
=
mdate
();
break
;
case
CLOCK_REALTIME
:
/* FIXME? sub-second precision */
total
=
CLOCK_FREQ
*
time
(
NULL
);
break
;
default:
assert
(
0
);
assert
(
p_condvar
->
clock
==
CLOCK_MONOTONIC
);
total
=
mdate
();
break
;
}
total
=
(
deadline
-
total
)
/
1000
;
if
(
total
<
0
)
...
...
@@ -600,14 +601,16 @@ static int vlc_clone_attr (vlc_thread_t *p_handle, bool detached,
* function instead of CreateThread, otherwise you'll end up with
* memory leaks and the signal functions not working (see Microsoft
* Knowledge Base, article 104641) */
hThread
=
(
HANDLE
)(
uintptr_t
)
_beginthreadex
(
NULL
,
0
,
vlc_entry
,
th
,
CREATE_SUSPENDED
,
NULL
);
if
(
hThread
==
NULL
)
uintptr_t
h
;
h
=
_beginthreadex
(
NULL
,
0
,
vlc_entry
,
th
,
CREATE_SUSPENDED
,
NULL
);
if
(
h
==
0
)
{
int
err
=
errno
;
free
(
th
);
return
err
;
}
hThread
=
(
HANDLE
)
h
;
#else
th
->
cancel_event
=
CreateEvent
(
NULL
,
FALSE
,
FALSE
,
NULL
);
...
...
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