Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
54e84562
Commit
54e84562
authored
Feb 10, 2008
by
Rémi Denis-Courmont
Browse files
Win32 threads: Set priority on success rather than failure.
Patch from atmo.
parent
e5896809
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/misc/threads.c
View file @
54e84562
...
...
@@ -591,12 +591,12 @@ int __vlc_thread_create( vlc_object_t *p_this, const char * psz_file, int i_line
#endif
p_priv
->
thread_id
.
id
=
(
DWORD
)
threadId
;
p_priv
->
thread_id
.
hThread
=
(
HANDLE
)
hThread
;
ResumeThread
((
HANDLE
)
hThread
);
ResumeThread
((
HANDLE
)
hThread
);
}
i_ret
=
(
p_priv
->
thread_id
.
hThread
?
0
:
1
);
if
(
i_ret
&&
i_priority
)
if
(
!
i_ret
&&
i_priority
)
{
if
(
!
SetThreadPriority
(
p_priv
->
thread_id
.
hThread
,
i_priority
)
)
{
...
...
Write
Preview
Supports
Markdown
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