From a2f98872836c6dfc18b884fefd348ea677be71f2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sun, 26 Jul 2009 19:25:58 +0300 Subject: [PATCH] Warning --- src/misc/pthread.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/misc/pthread.c b/src/misc/pthread.c index 644bf50f93..068cfa8fa7 100644 --- a/src/misc/pthread.c +++ b/src/misc/pthread.c @@ -584,9 +584,11 @@ void vlc_cancel (vlc_thread_t thread_id) } /** - * Waits for a thread to complete (if needed), and destroys it. + * Waits for a thread to complete (if needed), then destroys it. * This is a cancellation point; in case of cancellation, the join does _not_ * occur. + * @warning + * A thread cannot join itself (normally VLC will abort if this is attempted). * * @param handle thread handle * @param p_result [OUT] pointer to write the thread return value or NULL -- 2.39.5