libvlccore: vlc_thread_cancel() tangled object API

This commit is contained in:
Rémi Denis-Courmont 2008-08-16 11:38:14 +03:00
parent 779d3cdf33
commit de35969088
2 changed files with 11 additions and 0 deletions

View File

@ -52,6 +52,10 @@ void vlc_refcheck (vlc_object_t *obj);
# define vlc_refcheck( obj ) (void)0
#endif
/* Hopefully, no need to export this. There is a new thread API instead. */
void vlc_thread_cancel (vlc_object_t *);
/*
* CPU capabilities
*/

View File

@ -829,3 +829,10 @@ error:
p_priv->b_thread = false;
}
void vlc_thread_cancel (vlc_object_t *obj)
{
vlc_object_internals_t *priv = vlc_internals (obj);
if (priv->b_thread)
vlc_cancel (priv->thread_id);
}