Changeset 4742

Show
Ignore:
Timestamp:
05/10/07 20:34:11 (2 years ago)
Author:
morris
Message:

Timeout passed is relative time

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • libwired/trunk/libwired/thread/wi-lock.c

    r4623 r4742  
    486486        if(lock->condition != condition) { 
    487487                if(time > 0.0) { 
    488                         ts = wi_dtots(time); 
     488                        ts = wi_dtots(wi_time_interval() + time); 
    489489                         
    490490                        do { 
     
    492492 
    493493                                if(err != 0 && err != ETIMEDOUT) 
    494                                         WI_ASSERT(0, "pthread_cond_wait: %s", strerror(err)); 
     494                                        WI_ASSERT(0, "pthread_cond_timedwait: %s", strerror(err)); 
    495495                        } while(lock->condition != condition && err != ETIMEDOUT); 
    496496 
  • libwired/trunk/libwired/thread/wi-timer.c

    r4623 r4742  
    150150                                locked = false; 
    151151                        } else { 
    152                                 if(!wi_condition_lock_lock_when_condition(_wi_timer_lock, 1, timer->fire)) 
     152                                if(!wi_condition_lock_lock_when_condition(_wi_timer_lock, 1, diff)) 
    153153                                        fire_timer = wi_array_first_data(_wi_timers); 
    154154                        }