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
ef5bbdcb
Commit
ef5bbdcb
authored
Jul 08, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove vlc_cleanup_run()
parent
901fa0d6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
15 deletions
+2
-15
include/vlc_threads.h
include/vlc_threads.h
+2
-15
No files found.
include/vlc_threads.h
View file @
ef5bbdcb
...
...
@@ -659,7 +659,7 @@ VLC_API void vlc_restorecancel(int state);
* Internal handler for thread cancellation.
*
* Do not call this function directly. Use wrapper macros instead:
* vlc_cleanup_push(), vlc_cleanup_pop()
, vlc_cleanup_run()
.
* vlc_cleanup_push(), vlc_cleanup_pop().
*/
VLC_API
void
vlc_control_cancel
(
int
cmd
,
...);
...
...
@@ -830,7 +830,7 @@ VLC_API unsigned vlc_GetCPUCount(void);
* they are handled in last-in first-out order.
*
* \note Any call to vlc_cleanup_push() <b>must</b> paired with a call to
*
either vlc_cleanup_pop() or vlc_cleanup_run
().
*
vlc_cleanup_pop
().
* \warning Branching into or out of the block between these two function calls
* is not allowed (read: it will likely crash the whole process).
*
...
...
@@ -847,14 +847,6 @@ VLC_API unsigned vlc_GetCPUCount(void);
*/
# define vlc_cleanup_pop( ) pthread_cleanup_pop (0)
/**
* Unregisters a cancellation handler and run it.
*
* This pops the last cancellation handler (like vlc_cleanup_pop()), but
* additionally executes it.
*/
# define vlc_cleanup_run( ) pthread_cleanup_pop (1)
#else
enum
{
...
...
@@ -882,11 +874,6 @@ struct vlc_cleanup_t
vlc_control_cancel (VLC_CLEANUP_POP); \
} while (0)
# define vlc_cleanup_run( ) \
vlc_control_cancel (VLC_CLEANUP_POP); \
vlc_cleanup_data.proc (vlc_cleanup_data.data); \
} while (0)
#endif
/* !LIBVLC_USE_PTHREAD_CLEANUP */
static
inline
void
vlc_cleanup_lock
(
void
*
lock
)
...
...
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