diff options
author | Liong Sauw Ming <ming@teluu.com> | 2011-03-16 09:22:24 +0000 |
---|---|---|
committer | Liong Sauw Ming <ming@teluu.com> | 2011-03-16 09:22:24 +0000 |
commit | 623fdccd9c92fc2a00516e5cd6ed2d5edc2272a1 (patch) | |
tree | bf30cf0db67ac5c9aa3f431efdaa7d1938656a31 /pjlib/src/pj/ioqueue_winnt.c | |
parent | 2a9988f3e4c9b8d40ffebaa4427908de29324711 (diff) |
Fixed #1211: Add pjlib API pj_gettickcount() that returns a monotonically increasing timestamp
* Changed the timer_heap to use pj_gettickcount().
* Changed ioqueue to use pj_gettickcount().
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3456 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/src/pj/ioqueue_winnt.c')
-rw-r--r-- | pjlib/src/pj/ioqueue_winnt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pjlib/src/pj/ioqueue_winnt.c b/pjlib/src/pj/ioqueue_winnt.c index 22bf0a94..34924779 100644 --- a/pjlib/src/pj/ioqueue_winnt.c +++ b/pjlib/src/pj/ioqueue_winnt.c @@ -619,7 +619,7 @@ static void decrement_counter(pj_ioqueue_key_t *key) pj_lock_acquire(key->ioqueue->lock); pj_assert(key->closing == 1); - pj_gettimeofday(&key->free_time); + pj_gettickcount(&key->free_time); key->free_time.msec += PJ_IOQUEUE_KEY_FREE_DELAY; pj_time_val_normalize(&key->free_time); @@ -874,7 +874,7 @@ static void scan_closing_keys(pj_ioqueue_t *ioqueue) pj_time_val now; pj_ioqueue_key_t *key; - pj_gettimeofday(&now); + pj_gettickcount(&now); /* Move closing keys to free list when they've finished the closing * idle time. |