1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-25 12:10:03 +00:00

thread stuff

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@961 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
Philip Kovacs 2007-09-02 05:08:28 +00:00
parent 965031790a
commit 94e918914d

View File

@ -139,7 +139,8 @@ timed_thread_destroy (timed_thread* p_timed_thread, timed_thread** addr_of_p_tim
pthread_mutex_unlock (&p_timed_thread->runnable_mutex);
/* join the terminating thread */
pthread_join (p_timed_thread->thread, NULL);
if (p_timed_thread->thread)
pthread_join (p_timed_thread->thread, NULL);
/* clean up */
pthread_attr_destroy (&p_timed_thread->thread_attr);