public ER dly_tsk(DLYTIME dlytim) { ER result = ER.E_NOEXS; Task task; if (g_Kernel == null) return ER.E_DLT; g_Kernel.LockCPU(); try { task = g_Kernel.Nucleus.GetTask(ID.TSK_SELF); if (task == null) result = ER.E_CTX; else result = task.Delay(dlytim); } finally { g_Kernel.UnlockCPU(); } return result; }
public ER Delay(DLYTIME dlytim) { return(ER.E_NOSPT); }