Changeset 343
- Timestamp:
- 04/16/08 03:41:45 (7 months ago)
- Files:
-
- 1 modified
-
trunk/thrudoc/src/ReplicationBackend.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/thrudoc/src/ReplicationBackend.cpp
r313 r343 9 9 #include "ReplicationBackend.h" 10 10 11 #include <errno.h> 11 12 #include <poll.h> 12 13 #include <protocol/TBinaryProtocol.h> … … 68 69 int err; 69 70 struct timespec abstime; 70 err = clock_gettime(CLOCK_REALTIME, & this->abstime);71 err = clock_gettime(CLOCK_REALTIME, &abstime); 71 72 if (!err) 72 73 { 73 this->abstime.tv_sec += this->max_wait;74 abstime.tv_sec += this->max_wait; 74 75 // cond_timedwait will unlock mutex so release can happen 75 76 err = pthread_cond_timedwait (&this->condition, &this->mutex, 76 & this->abstime);77 &abstime); 77 78 // we need to free the mutex back up, cond_timedwait will lock 78 79 // it before it comes out
