Lines Matching defs:shared
98 Shared *shared = (Shared*)arg;
102 PR_Lock(shared->ml);
103 while (shared->twiddle && (PR_SUCCESS == status))
104 status = PR_WaitCondVar(shared->cv, PR_INTERVAL_NO_TIMEOUT);
106 shared->twiddle = PR_TRUE;
107 shared->next->twiddle = PR_FALSE;
108 PR_NotifyCondVar(shared->next->cv);
109 PR_Unlock(shared->ml);
120 Shared *shared, *link;
184 shared = PR_NEWZAP(Shared);
186 shared->ml = home.ml;
187 shared->cv = PR_NewCondVar(home.ml);
188 shared->twiddle = PR_TRUE;
189 shared->next = link;
190 link = shared;
192 shared->thread = PR_CreateThread(
193 PR_USER_THREAD, Notified, shared,
196 PR_ASSERT(shared->thread != NULL);
197 if (NULL == shared->thread)
208 shared->twiddle = PR_FALSE;
209 PR_NotifyCondVar(shared->cv);
230 link = shared;
246 link = shared->next;
247 status = PR_JoinThread(shared->thread);
254 PR_DestroyCondVar(shared->cv);
255 PR_DELETE(shared);
257 shared = link;