Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
6bc9535c
Commit
6bc9535c
authored
Dec 04, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Win32: implement thread return value
parent
c84a46bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
src/win32/thread.c
src/win32/thread.c
+5
-2
No files found.
src/win32/thread.c
View file @
6bc9535c
...
...
@@ -550,7 +550,7 @@ static unsigned __stdcall vlc_entry (void *p)
vlc_threadvar_set
(
thread_key
,
th
);
th
->
killable
=
true
;
th
->
entry
(
th
->
data
);
th
->
data
=
th
->
entry
(
th
->
data
);
vlc_threadvar_cleanup
();
if
(
th
->
detached
)
free
(
th
);
...
...
@@ -628,10 +628,11 @@ void vlc_join (vlc_thread_t th, void **result)
==
WAIT_IO_COMPLETION
);
CloseHandle
(
th
->
id
);
assert
(
result
==
NULL
);
/* <- FIXME if ever needed */
#ifdef UNDER_CE
CloseHandle
(
th
->
cancel_event
);
#endif
if
(
result
!=
NULL
)
*
result
=
th
->
data
;
free
(
th
);
}
...
...
@@ -694,6 +695,8 @@ void vlc_testcancel (void)
/* Detached threads cannot be cancelled */
assert
(
!
th
->
detached
);
th
->
data
=
NULL
;
/* TODO: special value? */
for
(
vlc_cleanup_t
*
p
=
th
->
cleaners
;
p
!=
NULL
;
p
=
p
->
next
)
p
->
proc
(
p
->
data
);
vlc_threadvar_cleanup
();
...
...
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