diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2010-04-23 03:59:52 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2010-04-23 03:59:52 +0000 |
| commit | fbbda16ce5d06ebebc7d6eabdbd0769a3d886cb8 (patch) | |
| tree | 7243947a60c12915121bb3f6b21fc40c7d4af72c /cpp/include/qpid/sys/posix/Condition.h | |
| parent | 0251793e6387b741424787ae4902994fd2f46e9f (diff) | |
| download | qpid-python-fbbda16ce5d06ebebc7d6eabdbd0769a3d886cb8.tar.gz | |
QPID-1904: Ensure that all timestamp uses are correctly relative to 1/1/1970 epoch.
- Removed the hacky way to access the internal time value in AbsTime now that there
is a defined AbsTime value EPOCH.
- Changed all the code to use Duration(EPOCH, abtime)
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@937147 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/include/qpid/sys/posix/Condition.h')
| -rw-r--r-- | cpp/include/qpid/sys/posix/Condition.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/include/qpid/sys/posix/Condition.h b/cpp/include/qpid/sys/posix/Condition.h index 279039735a..36e7557ffd 100644 --- a/cpp/include/qpid/sys/posix/Condition.h +++ b/cpp/include/qpid/sys/posix/Condition.h @@ -65,7 +65,7 @@ void Condition::wait(Mutex& mutex) { bool Condition::wait(Mutex& mutex, const AbsTime& absoluteTime){ struct timespec ts; - toTimespec(ts, Duration(absoluteTime)); + toTimespec(ts, Duration(EPOCH, absoluteTime)); int status = pthread_cond_timedwait(&condition, &mutex.mutex, &ts); if (status != 0) { if (status == ETIMEDOUT) return false; |
