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
e7b765a1
Commit
e7b765a1
authored
Apr 07, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Win32: inline vlc_cancel_self
parent
56de5bf2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
include/vlc_threads.h
include/vlc_threads.h
+0
-1
src/win32/thread.c
src/win32/thread.c
+5
-5
No files found.
include/vlc_threads.h
View file @
e7b765a1
...
...
@@ -206,7 +206,6 @@ VLC_EXPORT( unsigned, vlc_timer_getoverrun, (vlc_timer_t) LIBVLC_USED );
#ifndef LIBVLC_USE_PTHREAD_CANCEL
enum
{
VLC_DO_CANCEL
,
VLC_CLEANUP_PUSH
,
VLC_CLEANUP_POP
,
};
...
...
src/win32/thread.c
View file @
e7b765a1
...
...
@@ -636,8 +636,12 @@ void vlc_detach (vlc_thread_t handle)
/* APC procedure for thread cancellation */
static
void
CALLBACK
vlc_cancel_self
(
ULONG_PTR
dummy
)
{
vlc_cancel_t
*
nfo
=
vlc_threadvar_get
(
cancel_key
);
if
(
likely
(
nfo
!=
NULL
))
nfo
->
killed
=
true
;
(
void
)
dummy
;
vlc_control_cancel
(
VLC_DO_CANCEL
);
}
void
vlc_cancel
(
vlc_thread_t
thread_id
)
...
...
@@ -705,10 +709,6 @@ void vlc_control_cancel (int cmd, ...)
va_start
(
ap
,
cmd
);
switch
(
cmd
)
{
case
VLC_DO_CANCEL
:
nfo
->
killed
=
true
;
break
;
case
VLC_CLEANUP_PUSH
:
{
/* cleaner is a pointer to the caller stack, no need to allocate
...
...
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