destroy

此方法會毀損 RiCOSSemaphore 物件。

簽章
void RiCOSSemaphore_destroy (RiCOSSemaphore *const me);
參數
me

要毀損的 RiCOSSemaphore 物件

範例
void RiCOSSemaphore_destroy(RiCOSSemaphore * const me)
{
   if (me == NULL) return;

   RiCOSSemaphore_cleanup(me);
   free(me);
}

回饋