Home | History | Annotate | Download | only in deutil

Lines Matching refs:curThread

308 	deTimerThread*		curThread;		/*!< Current timer thread.	*/
396 if (timer->curThread)
403 if (timer->curThread)
407 deMutex_lock(timer->curThread->lock);
408 isActive = timer->curThread->state != TIMERSTATE_LAST;
409 deMutex_unlock(timer->curThread->lock);
419 if (timer->curThread)
422 DE_ASSERT(!timer->curThread);
423 timer->curThread = deTimerThread_create(timer->callback, timer->callbackArg, milliseconds, TIMERSTATE_SINGLE);
425 return timer->curThread != DE_NULL;
430 if (timer->curThread)
433 DE_ASSERT(!timer->curThread);
434 timer->curThread = deTimerThread_create(timer->callback, timer->callbackArg, milliseconds, TIMERSTATE_INTERVAL);
436 return timer->curThread != DE_NULL;
441 if (!timer->curThread)
444 deMutex_lock(timer->curThread->lock);
446 if (timer->curThread->state != TIMERSTATE_DISABLED)
452 timer->curThread->state = TIMERSTATE_DISABLED;
453 deThread_destroy(timer->curThread->thread);
454 timer->curThread->thread = 0;
455 deMutex_unlock(timer->curThread->lock);
457 /* Thread will destroy timer->curThread. */
462 deMutex_unlock(timer->curThread->lock);
463 deThread_destroy(timer->curThread->thread);
464 deMutex_destroy(timer->curThread->lock);
465 deFree(timer->curThread);
468 timer->curThread = DE_NULL;