Commit de359690 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

libvlccore: vlc_thread_cancel() tangled object API

parent 779d3cdf
......@@ -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
*/
......
......@@ -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);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment