Changeset 102213 in vbox for trunk/src/libs
- Timestamp:
- Nov 21, 2023 2:29:32 PM (16 months ago)
- svn:sync-xref-src-repo-rev:
- 160338
- Location:
- trunk/src/libs/xpcom18a4/nsprpub/pr
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/nsprpub/pr/include/private/primpl.h
r102209 r102213 258 258 pthread_t id; /* pthread identifier for the thread */ 259 259 PRBool okToDelete; /* ok to delete the PRThread struct? */ 260 PRCondVar *waiting; /* where the thread is waiting | NULL */261 260 void *sp; /* recorded sp for garbage collection */ 262 261 PRThread *next, *prev; /* simple linked list of all threads */ -
trunk/src/libs/xpcom18a4/nsprpub/pr/src/pthreads/ptsynch.c
r102209 r102213 322 322 { 323 323 PRIntn rv; 324 PRThread *thred = PR_GetCurrentThread();325 324 326 325 Assert(cvar != NULL); … … 330 329 /* and it better be by us */ 331 330 Assert(pthread_equal(cvar->lock->owner, pthread_self())); 332 333 if (_PT_THREAD_INTERRUPTED(thred)) goto aborted;334 335 /*336 * The thread waiting is used for PR_Interrupt337 */338 thred->waiting = cvar; /* this is where we're waiting */339 331 340 332 /* … … 365 357 366 358 Assert(0 == cvar->lock->notified.length); 367 thred->waiting = NULL; /* and now we're not */368 if (_PT_THREAD_INTERRUPTED(thred)) goto aborted;369 359 if (rv != 0) 370 360 { … … 372 362 } 373 363 return PR_SUCCESS; 374 375 aborted:376 thred->state &= ~PT_THREAD_ABORTED;377 return PR_FAILURE;378 364 } /* PR_WaitCondVar */ 379 365
Note:
See TracChangeset
for help on using the changeset viewer.