Lines Matching refs:curThread

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