rem: int timed_wait(pthread_mutex_t* mutex, pthread_cond_t* cond, long int seconds)
add: static int timed_wait(pthread_mutex_t* mutex, pthread_cond_t* cond, long int seconds)
context: int timed_wait(pthread_mutex_t* mutex, pthread_cond_t* cond, long int seconds){   struct timeval now;   gettimeofday(&now, 0);   struct timespec sleepcount;   sleepcount.tv_sec = now.tv_sec + seconds;   sleepcount.tv_nsec = now.tv_usec * 1000;   int ret = 0;       pthread_mutex_lock(mutex);   ret = pthread_cond_timedwait(cond, 				mutex,				&sleepcount);   pthread_mutex_unlock(mutex);   return(ret);}