Lines Matching defs:rc
89 int rc = RTSemEventMultiWait(g_hEventMulti, RT_INDEFINITE_WAIT);
90 if (RT_FAILURE(rc))
91 return rc;
92 rc = RTOnce(&g_Once2, Once2CB, (void *)42);
93 if (RT_SUCCESS(rc))
101 return rc;
115 int rc = RTOnce(&Once1, Once1CB, (void *)1);
116 if (rc != VINF_SUCCESS)
117 RTPrintf("tstOnce: ERROR - Once1, 1 failed, rc=%Rrc\n", rc);
119 rc = RTOnce(&Once1, Once1CB, (void *)1);
120 if (rc != VINF_SUCCESS)
121 RTPrintf("tstOnce: ERROR - Once1, 2 failed, rc=%Rrc\n", rc);
128 rc = RTSemEventMultiCreate(&g_hEventMulti);
129 if (RT_FAILURE(rc))
131 RTPrintf("tstOnce: FATAL ERROR - RTSemEventMultiCreate returned %Rrc\n", rc);
141 rc = RTThreadCreate(&aThreads[i], Once2Thread, NULL, 0, RTTHREADTYPE_DEFAULT, RTTHREADFLAGS_WAITABLE, szName);
142 if (RT_FAILURE(rc))
150 rc = RTSemEventMultiSignal(g_hEventMulti);
151 if (RT_FAILURE(rc))
153 RTPrintf("tstOnce: FATAL ERROR - RTSemEventMultiSignal returned %Rrc\n", rc);
163 rc = RTThreadWait(aThreads[i], 30*1000, &rc2);
164 if (RT_FAILURE(rc))
166 RTPrintf("tstOnce: ERROR - RTThreadWait on thread #%u returned %Rrc\n", i, rc);