exeOnMyTask

此方法用于确定方法是否从运行对象的操作系统任务中调用。

特征符
RiCBoolean RiCOSTask_exeOnMyTask (RiCOSTask *const me);
参数
me

这是要比较的 RiCOSTask 对象

返回

此方法返回以下某个值:

示例
RiCBoolean RiCOSTask_exeOnMyTask(RiCOSTask * const me)
{
   RiCOSHandle executedOsHandle;
   RiCOSHandle myOsHandle;
   RiCBoolean res;

   if (me == NULL) return RiCFALSE;

   /* A handle to the thread that executes the delete */
   executedOsHandle = RiCOSTask_getCurrentTaskHandle();
   /* A handle to ‘this' thread */
   myOsHandle = RiCOSTask_getOSHandle(me);
   res = ((executedOsHandle == myOsHandle) ? 
      RiCTRUE : RiCFALSE);
   return res;
}

反馈