Commit e86b10e7 authored by Sebastien Petitdemange's avatar Sebastien Petitdemange
Browse files

Fixed a bug in wait condition

parent 8e61f596
...@@ -177,7 +177,6 @@ bool Cond::wait(double timeout) ...@@ -177,7 +177,6 @@ bool Cond::wait(double timeout)
{ {
struct timeval now; struct timeval now;
struct timespec waitTimeout; struct timespec waitTimeout;
int retcode = 0;
gettimeofday(&now,NULL); gettimeofday(&now,NULL);
waitTimeout.tv_sec = now.tv_sec + long(timeout); waitTimeout.tv_sec = now.tv_sec + long(timeout);
waitTimeout.tv_nsec = (now.tv_usec * 1000) + waitTimeout.tv_nsec = (now.tv_usec * 1000) +
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment