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);
}

反馈