Lines Matching refs:sharedM
203 static MonShared sharedM;
213 sharedM.o1 = PR_NewMonitor();
214 sharedM.o2 = PR_NewMonitor();
218 PR_EnterMonitor(sharedM.o1);
220 rv = PR_Wait(sharedM.o1, PR_SecondsToInterval(3));
223 PR_ExitMonitor(sharedM.o1);
227 PR_USER_THREAD, T2Mon, &sharedM, PR_PRIORITY_NORMAL,
232 PR_USER_THREAD, T3Mon, &sharedM, PR_PRIORITY_NORMAL,
235 PR_EnterMonitor(sharedM.o2);
237 rv = PR_Wait(sharedM.o2, PR_INTERVAL_NO_TIMEOUT);
240 PR_ExitMonitor(sharedM.o2);
245 PR_DestroyMonitor(sharedM.o1);
246 PR_DestroyMonitor(sharedM.o2);