|
|
发表于 2006-2-18 17:38:03
|
显示全部楼层
你最后一个参数搞错了
man pthread_cond_timedwait:
int pthread_cond_timedwait(pthread_cond_t *cond,pthread_mutex_t *mutex, const struct timespec *abstime);
The abstime parameter specifies an abso-lute time, with the same origin as time(2) and gettimeofday(2): an abstime of 0 corresponds to 00:00:00 GMT, January 1, 1970. |
|