Lines Matching refs:rc
50 int rc;
60 rc = RTSemPongWait(pPP, RT_INDEFINITE_WAIT);
61 if (RT_FAILURE(rc))
64 RTPrintf("tstSemPingPong: ERROR - RTSemPongWait -> %Rrc\n", rc);
74 rc = RTSemPong(pPP);
75 if (RT_FAILURE(rc))
78 RTPrintf("tstSemPingPong: ERROR - RTSemPong -> %Rrc\n", rc);
82 return rc;
95 int rc = RTSemPingPongInit(&PingPong);
96 if (RT_FAILURE(rc))
98 RTPrintf("tstSemPingPong: FATAL ERROR - RTSemPingPongInit -> %Rrc\n", rc);
103 rc = RTThreadCreate(&hThread, tstSemPingPongThread, &PingPong, 0, RTTHREADTYPE_DEFAULT, RTTHREADFLAGS_WAITABLE, "PONG");
104 if (RT_FAILURE(rc))
106 RTPrintf("tstSemPingPong: FATAL ERROR - RTSemPingPongInit -> %Rrc\n", rc);
119 rc = RTSemPing(&PingPong);
120 if (RT_FAILURE(rc))
123 RTPrintf("tstSemPingPong: ERROR - RTSemPing -> %Rrc\n", rc);
133 rc = RTSemPingWait(&PingPong, RT_INDEFINITE_WAIT);
134 if (RT_FAILURE(rc))
137 RTPrintf("tstSemPingPong: ERROR - RTSemPingWait -> %Rrc\n", rc);
143 rc = RTThreadWait(hThread, 5000, &rcThread);
144 if (RT_FAILURE(rc))
147 RTPrintf("tstSemPingPong: ERROR - RTSemPingWait -> %Rrc\n", rc);
150 rc = RTSemPingPongDelete(&PingPong);
151 if (RT_FAILURE(rc))
154 RTPrintf("tstSemPingPong: ERROR - RTSemPingPongDestroy -> %Rrc\n", rc);