Changeset 101900 in vbox
- Timestamp:
- Nov 6, 2023 8:18:04 PM (15 months ago)
- Location:
- trunk/src/libs/xpcom18a4/nsprpub/pr
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/nsprpub/pr/include/prthread.h
r11551 r101900 262 262 263 263 /* 264 ** Clear the interrupt request for the calling thread. If no such request265 ** is pending, this operation is a noop.266 */267 NSPR_API(void) PR_ClearInterrupt(void);268 269 /*270 ** Block the interrupt for the calling thread.271 */272 NSPR_API(void) PR_BlockInterrupt(void);273 274 /*275 ** Unblock the interrupt for the calling thread.276 */277 NSPR_API(void) PR_UnblockInterrupt(void);278 279 /*280 264 ** Make the current thread sleep until "ticks" time amount of time 281 265 ** has expired. If "ticks" is PR_INTERVAL_NO_WAIT then the call is -
trunk/src/libs/xpcom18a4/nsprpub/pr/src/pthreads/ptthread.c
r101899 r101900 545 545 } /* PR_Interrupt */ 546 546 547 PR_IMPLEMENT(void) PR_ClearInterrupt(void)548 {549 PRThread *me = PR_CurrentThread();550 me->state &= ~PT_THREAD_ABORTED;551 } /* PR_ClearInterrupt */552 553 PR_IMPLEMENT(void) PR_BlockInterrupt(void)554 {555 PRThread *me = PR_CurrentThread();556 _PT_THREAD_BLOCK_INTERRUPT(me);557 } /* PR_BlockInterrupt */558 559 PR_IMPLEMENT(void) PR_UnblockInterrupt(void)560 {561 PRThread *me = PR_CurrentThread();562 _PT_THREAD_UNBLOCK_INTERRUPT(me);563 } /* PR_UnblockInterrupt */564 565 PR_IMPLEMENT(PRStatus) PR_Yield(void)566 {567 static PRBool warning = PR_TRUE;568 if (warning) warning = _PR_Obsolete(569 "PR_Yield()", "PR_Sleep(PR_INTERVAL_NO_WAIT)");570 return PR_Sleep(PR_INTERVAL_NO_WAIT);571 }572 573 547 PR_IMPLEMENT(PRStatus) PR_Sleep(PRIntervalTime ticks) 574 548 {
Note:
See TracChangeset
for help on using the changeset viewer.