Lines Matching refs:rv

73 static void LogNow(const char *msg, PRStatus rv)
78 if (PR_FAILURE == rv) PL_FPrintError(err, " ");
95 PRStatus rv;
100 rv = PR_CWait(&shared->o1, PR_SecondsToInterval(5));
101 if (PR_SUCCESS == rv) LogNow("T2 resuming on o1", rv);
102 else LogNow("T2 wait failed on o1", rv);
104 rv = PR_CNotify(&shared->o1);
105 if (PR_SUCCESS == rv) LogNow("T2 notified o1", rv);
106 else LogNow("T2 notify on o1 failed", rv);
113 PRStatus rv;
118 rv = PR_CWait(&shared->o2, PR_SecondsToInterval(5));
119 if (PR_SUCCESS == rv) LogNow("T3 resuming on o2", rv);
120 else LogNow("T3 wait failed on o2", rv);
121 rv = PR_CNotify(&shared->o2);
122 LogNow("T3 notify on o2", rv);
131 PRStatus rv;
142 rv = PR_CWait(&sharedCM.o1, PR_SecondsToInterval(3));
143 if (PR_SUCCESS == rv) LogNow("T1 resuming on o1", rv);
144 else LogNow("T1 wait on o1 failed", rv);
159 rv = PR_CWait(&sharedCM.o2, PR_INTERVAL_NO_TIMEOUT);
160 if (PR_SUCCESS == rv) LogNow("T1 resuming on o2", rv);
161 else LogNow("T1 wait on o2 failed", rv);
171 PRStatus rv;
176 rv = PR_Wait(shared->o1, PR_SecondsToInterval(5));
177 if (PR_SUCCESS == rv) LogNow("T2 resuming on o1", rv);
178 else LogNow("T2 wait failed on o1", rv);
180 rv = PR_Notify(shared->o1);
181 if (PR_SUCCESS == rv) LogNow("T2 notified o1", rv);
182 else LogNow("T2 notify on o1 failed", rv);
189 PRStatus rv;
194 rv = PR_Wait(shared->o2, PR_SecondsToInterval(5));
195 if (PR_SUCCESS == rv) LogNow("T3 resuming on o2", rv);
196 else LogNow("T3 wait failed on o2", rv);
197 rv = PR_Notify(shared->o2);
198 LogNow("T3 notify on o2", rv);
206 PRStatus rv;
220 rv = PR_Wait(sharedM.o1, PR_SecondsToInterval(3));
221 if (PR_SUCCESS == rv) LogNow("T1 resuming on o1", rv);
222 else LogNow("T1 wait on o1 failed", rv);
237 rv = PR_Wait(sharedM.o2, PR_INTERVAL_NO_TIMEOUT);
238 if (PR_SUCCESS == rv) LogNow("T1 resuming on o2", rv);
239 else LogNow("T1 wait on o2 failed", rv);
252 PRStatus rv;
257 rv = PR_WaitCondVar(shared->cv1, PR_SecondsToInterval(5));
258 if (PR_SUCCESS == rv) LogNow("T2 resuming on o1", rv);
259 else LogNow("T2 wait failed on o1", rv);
261 rv = PR_NotifyCondVar(shared->cv1);
262 if (PR_SUCCESS == rv) LogNow("T2 notified o1", rv);
263 else LogNow("T2 notify on o1 failed", rv);
270 PRStatus rv;
275 rv = PR_WaitCondVar(shared->cv2, PR_SecondsToInterval(5));
276 if (PR_SUCCESS == rv) LogNow("T3 resuming on o2", rv);
277 else LogNow("T3 wait failed on o2", rv);
278 rv = PR_NotifyCondVar(shared->cv2);
279 LogNow("T3 notify on o2", rv);
291 PRStatus rv;
306 rv = PR_WaitCondVar(sharedL.cv1, PR_SecondsToInterval(3));
307 if (PR_SUCCESS == rv) LogNow("T1 resuming on o1", rv);
308 else LogNow("T1 wait on o1 failed", rv);
323 rv = PR_WaitCondVar(sharedL.cv2, PR_INTERVAL_NO_TIMEOUT);
324 if (PR_SUCCESS == rv) LogNow("T1 resuming on o2", rv);
325 else LogNow("T1 wait on o2 failed", rv);
383 PRIntn rv;
386 rv = PR_Initialize(RealMain, argc, argv, 0);
387 return rv;