mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 01:49:05 +00:00
change low res sleep func api names
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11486 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -107,7 +107,7 @@ static int task_thread_loop(int done)
|
||||
if (done) {
|
||||
tp->destroyed = 1;
|
||||
} else {
|
||||
int64_t now = switch_timestamp(NULL);
|
||||
int64_t now = switch_epoch_time_now(NULL);
|
||||
if (now >= tp->task.runtime && !tp->in_thread) {
|
||||
int32_t diff = (int32_t) (now - tp->task.runtime);
|
||||
if (diff > 1) {
|
||||
@@ -190,7 +190,7 @@ SWITCH_DECLARE(uint32_t) switch_scheduler_add_task(time_t task_runtime,
|
||||
switch_zmalloc(container, sizeof(*container));
|
||||
switch_assert(func);
|
||||
container->func = func;
|
||||
container->task.created = switch_timestamp(NULL);
|
||||
container->task.created = switch_epoch_time_now(NULL);
|
||||
container->task.runtime = task_runtime;
|
||||
container->task.group = strdup(group ? group : "none");
|
||||
container->task.cmd_id = cmd_id;
|
||||
|
Reference in New Issue
Block a user