Uncached time_get by default

This commit is contained in:
def 2014-11-18 18:21:30 +01:00
parent 3df4c76e57
commit 140173311e
3 changed files with 1 additions and 9 deletions

View file

@ -635,18 +635,13 @@ void lock_release(LOCK lock)
#endif #endif
#endif #endif
static int new_tick = 1; static int new_tick = -1;
void set_new_tick() void set_new_tick()
{ {
new_tick = 1; new_tick = 1;
} }
void set_uncached_time_get()
{
new_tick = -1;
}
/* ----- time ----- */ /* ----- time ----- */
int64 time_get() int64 time_get()
{ {

View file

@ -437,7 +437,6 @@ typedef long long int64;
#endif #endif
void set_new_tick(); void set_new_tick();
void set_uncached_time_get();
/* /*
Function: time_get Function: time_get

View file

@ -3116,8 +3116,6 @@ int main(int argc, const char **argv) // ignore_convention
dbg_enable_threaded(); dbg_enable_threaded();
#endif #endif
set_uncached_time_get();
CClient *pClient = CreateClient(); CClient *pClient = CreateClient();
IKernel *pKernel = IKernel::Create(); IKernel *pKernel = IKernel::Create();
pKernel->RegisterInterface(pClient); pKernel->RegisterInterface(pClient);