From: <pk...@us...> - 2007-09-01 21:18:59
|
Revision: 949 http://conky.svn.sourceforge.net/conky/?rev=949&view=rev Author: pkovacs Date: 2007-09-01 14:18:52 -0700 (Sat, 01 Sep 2007) Log Message: ----------- timed thread work Modified Paths: -------------- trunk/conky1/src/timed_thread.c Modified: trunk/conky1/src/timed_thread.c =================================================================== --- trunk/conky1/src/timed_thread.c 2007-09-01 21:07:40 UTC (rev 948) +++ trunk/conky1/src/timed_thread.c 2007-09-01 21:18:52 UTC (rev 949) @@ -105,9 +105,8 @@ p_timed_thread->start_routine = start_routine; p_timed_thread->arg = arg; - /* current time */ - if (now (&p_timed_thread->absolute_time)) - return NULL; + p_timed_thread->absolute_time.tv_sec=0; + p_timed_thread->absolute_time.tv_nsec=0; /* seconds portion of the microseconds interval */ p_timed_thread->interval_time.tv_sec = (time_t)(interval_usecs / 1000000); @@ -193,7 +192,6 @@ p_timed_thread->absolute_time.tv_nsec = nowtime.tv_nsec; } - /* acquire runnable_cond mutex */ if (pthread_mutex_lock (&p_timed_thread->runnable_mutex)) return (-1); /* could not acquire runnable_cond mutex, so tell caller to exit thread */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |