kernel/eka/nkern/nk_timer.cpp
changeset 90 947f0dc9f7a8
parent 36 538db54a451d
child 254 1560c419b176
child 257 3e88ff8f41d5
equal deleted inserted replaced
52:2d65c2f76d7b 90:947f0dc9f7a8
   151 EXPORT_C TInt NTimer::Again(TInt aTime)
   151 EXPORT_C TInt NTimer::Again(TInt aTime)
   152 //
   152 //
   153 // Wait aTime from last trigger time - used for periodic timers
   153 // Wait aTime from last trigger time - used for periodic timers
   154 //
   154 //
   155 	{
   155 	{
   156 	__NK_ASSERT_DEBUG(aTime>0);
       
   157 	TInt irq=NKern::DisableAllInterrupts();
   156 	TInt irq=NKern::DisableAllInterrupts();
   158 	if (iState!=EIdle)
   157 	if (iState!=EIdle)
   159 		{
   158 		{
   160 		NKern::RestoreInterrupts(irq);
   159 		NKern::RestoreInterrupts(irq);
   161 		return KErrInUse;
   160 		return KErrInUse;