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
278a1ccc
Commit
278a1ccc
authored
Aug 27, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vlc_join is a cancellation point
parent
8b74b9de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
src/misc/threads.c
src/misc/threads.c
+8
-1
No files found.
src/misc/threads.c
View file @
278a1ccc
...
...
@@ -595,6 +595,9 @@ void vlc_cancel (vlc_thread_t thread_id)
/**
* Waits for a thread to complete (if needed), and destroys it.
* This is a cancellation point; in case of cancellation, the join does _not_
* occur.
*
* @param handle thread handle
* @param p_result [OUT] pointer to write the thread return value or NULL
* @return 0 on success, a standard error code otherwise.
...
...
@@ -605,7 +608,11 @@ int vlc_join (vlc_thread_t handle, void **result)
return
pthread_join
(
handle
,
result
);
#elif defined( UNDER_CE ) || defined( WIN32 )
WaitForSingleObject
(
handle
->
handle
,
INFINITE
);
do
vlc_testcancel
();
while
(
WaitForSingleObjectEx
(
handle
->
handle
,
INFINITE
,
TRUE
)
==
WAIT_IO_COMPLETION
);
CloseHandle
(
handle
->
handle
);
if
(
result
)
*
result
=
handle
->
data
;
...
...
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