add core param for controling timer

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16093 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2009-12-30 15:47:31 +00:00
parent 59afe7d382
commit 8f05bb7939
3 changed files with 8 additions and 0 deletions

View File

@@ -168,6 +168,11 @@ SWITCH_DECLARE(void) switch_time_set_nanosleep(switch_bool_t enable)
NANO = enable ? 1 : 0;
}
SWITCH_DECLARE(void) switch_time_set_cond_yield(switch_bool_t enable)
{
globals.use_cond_yield = enable ? 1 : 0;
}
static switch_time_t time_now(int64_t offset)
{
switch_time_t now;