mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 09:36:46 +00:00
cleanup and consistency.. blah rain @ PHX fun
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7396 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -80,7 +80,6 @@ typedef struct timer_matrix timer_matrix_t;
|
||||
|
||||
static timer_matrix_t TIMER_MATRIX[MAX_ELEMENTS + 1];
|
||||
|
||||
|
||||
SWITCH_DECLARE(switch_time_t) switch_timestamp_now(void)
|
||||
{
|
||||
return runtime.timestamp ? runtime.timestamp : switch_time_now();
|
||||
@@ -129,8 +128,6 @@ SWITCH_DECLARE(void) switch_time_sync(void)
|
||||
runtime.reference = time_now(runtime.offset);
|
||||
}
|
||||
|
||||
|
||||
|
||||
SWITCH_DECLARE(void) switch_sleep(switch_interval_time_t t)
|
||||
{
|
||||
|
||||
@@ -152,8 +149,6 @@ SWITCH_DECLARE(void) switch_sleep(switch_interval_time_t t)
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
static switch_status_t timer_init(switch_timer_t *timer)
|
||||
{
|
||||
timer_private_t *private_info;
|
||||
@@ -184,14 +179,11 @@ static switch_status_t timer_init(switch_timer_t *timer)
|
||||
return SWITCH_STATUS_MEMERR;
|
||||
}
|
||||
|
||||
|
||||
#define check_roll() if (private_info->roll < TIMER_MATRIX[timer->interval].roll) {\
|
||||
private_info->roll++;\
|
||||
private_info->reference = private_info->start = TIMER_MATRIX[timer->interval].tick;\
|
||||
}\
|
||||
|
||||
|
||||
|
||||
static switch_status_t timer_step(switch_timer_t *timer)
|
||||
{
|
||||
timer_private_t *private_info = timer->private_info;
|
||||
@@ -215,7 +207,6 @@ static switch_status_t timer_step(switch_timer_t *timer)
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
static switch_status_t timer_next(switch_timer_t *timer)
|
||||
{
|
||||
timer_private_t *private_info = timer->private_info;
|
||||
@@ -261,7 +252,6 @@ static switch_status_t timer_check(switch_timer_t *timer)
|
||||
return status;
|
||||
}
|
||||
|
||||
|
||||
static switch_status_t timer_destroy(switch_timer_t *timer)
|
||||
{
|
||||
timer_private_t *private_info = timer->private_info;
|
||||
@@ -275,7 +265,6 @@ static switch_status_t timer_destroy(switch_timer_t *timer)
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
SWITCH_MODULE_RUNTIME_FUNCTION(softtimer_runtime)
|
||||
{
|
||||
switch_time_t too_late = STEP_MIC * 128;
|
||||
@@ -380,7 +369,6 @@ SWITCH_MODULE_RUNTIME_FUNCTION(softtimer_runtime)
|
||||
return SWITCH_STATUS_TERM;
|
||||
}
|
||||
|
||||
|
||||
SWITCH_MODULE_LOAD_FUNCTION(softtimer_load)
|
||||
{
|
||||
switch_timer_interface_t *timer_interface;
|
||||
@@ -419,7 +407,7 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(softtimer_shutdown)
|
||||
/* For Emacs:
|
||||
* Local Variables:
|
||||
* mode:c
|
||||
* indent-tabs-mode:t
|
||||
* indent-tabs-mode:nil
|
||||
* tab-width:4
|
||||
* c-basic-offset:4
|
||||
* End:
|
||||
|
Reference in New Issue
Block a user