이 메소드는 오브젝트가 실행 중인 운영 체제 태스크와 동일한 운영 체제 태스크에서 메소드가 호출되었는지 여부를 판별합니다.
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;
}