Mercurial > audlegacy-plugins
comparison src/alarm/alarm.c @ 129:dae03298753f trunk
[svn] - don't cancel threads that don't exist (TODO: GThreadify)
author | nenolod |
---|---|
date | Fri, 27 Oct 2006 11:55:45 -0700 |
parents | 96fc1ef32c99 |
children | 26a5aef73955 |
comparison
equal
deleted
inserted
replaced
128:d358a61fe55e | 129:dae03298753f |
---|---|
998 */ | 998 */ |
999 static void alarm_cleanup() | 999 static void alarm_cleanup() |
1000 { | 1000 { |
1001 DEBUG("alarm_cleanup\n"); | 1001 DEBUG("alarm_cleanup\n"); |
1002 | 1002 |
1003 pthread_cancel(start_tid); | 1003 if (start_tid) |
1004 pthread_cancel(start_tid); | |
1004 start_tid = 0; | 1005 start_tid = 0; |
1005 if(stop_tid) | 1006 if(stop_tid) |
1006 pthread_cancel(stop_tid); | 1007 pthread_cancel(stop_tid); |
1008 stop_tid = 0; | |
1007 } | 1009 } |
1008 | 1010 |
1009 /* | 1011 /* |
1010 * for xmms to get the function names | 1012 * for xmms to get the function names |
1011 */ | 1013 */ |