resume

此方法會回復已暫停的作業。 此方法不在產生的程式碼中使用,它僅用於進階排程。

suspendresume 方法會提供一種停止並重新啟動作業的方式。 當等待資源(如互斥或事件旗標)時,作業通常會封鎖,因此很少使用這兩種方法。

簽章
RiCOSResult RiCOSTask_resume (RiCOSTask *const me);
參數
me

要回復的 RiCOSTask 物件

傳回

RiCOSResult 物件,如 RiCOS*.h 檔案所定義

範例
RiCOSResult RiCOSTask_resume(RiCOSTask * const me)
{
   if (me == NULL) {return 0;}
   (void)taskResume(me->hThread);
   return 1;}

回饋