此方法用于确定方法是否从运行对象的操作系统任务中调用。
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;
}