try to use clock_gettime to make sure we don't care if the system time changes

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7165 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2008-01-11 00:43:49 +00:00
parent 886f99735a
commit 143bed09a3
38 changed files with 174 additions and 104 deletions
+2
View File
@@ -158,6 +158,8 @@ struct switch_media_bug {
struct switch_runtime {
switch_time_t initiated;
switch_time_t reference;
int64_t offset;
switch_hash_t *global_vars;
switch_hash_t *mime_types;
switch_memory_pool_t *memory_pool;
+2
View File
@@ -1536,6 +1536,8 @@ SWITCH_DECLARE(void) switch_core_memory_reclaim_events(void);
SWITCH_DECLARE(void) switch_core_memory_reclaim_logger(void);
SWITCH_DECLARE(void) switch_core_memory_reclaim_all(void);
SWITCH_DECLARE(void) switch_core_setrlimits(void);
SWITCH_DECLARE(void) switch_time_sync(void);
SWITCH_DECLARE(time_t) switch_timestamp(time_t *t);
///\}
+2 -1
View File
@@ -1065,7 +1065,8 @@ typedef enum {
SCSC_SPS,
SCSC_LAST_SPS,
SCSC_RECLAIM,
SCSC_MAX_SESSIONS
SCSC_MAX_SESSIONS,
SCSC_SYNC_CLOCK
} switch_session_ctl_t;
typedef struct apr_pool_t switch_memory_pool_t;