Changeset 101776 in vbox for trunk/src/libs/xpcom18a4/nsprpub/pr/include/private
- Timestamp:
- Nov 4, 2023 6:16:01 PM (18 months ago)
- svn:sync-xref-src-repo-rev:
- 159872
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/nsprpub/pr/include/private/pprthred.h
r11780 r101776 69 69 #define PR_ResumeAll VBoxNsprPR_ResumeAll 70 70 #define PR_GetSP VBoxNsprPR_GetSP 71 #define PR_GetGCRegisters VBoxNsprPR_GetGCRegisters72 71 #define GetExecutionEnvironment VBoxNsprGetExecutionEnvironment 73 72 #define SetExecutionEnvironment VBoxNsprSetExecutionEnvironment … … 238 237 239 238 /* 240 ** Save the registers that the GC would find interesting into the thread241 ** "t". isCurrent will be non-zero if the thread state that is being242 ** saved is the currently executing thread. Return the address of the243 ** first register to be scanned as well as the number of registers to244 ** scan in "np".245 **246 ** If "isCurrent" is non-zero then it is allowed for the thread context247 ** area to be used as scratch storage to hold just the registers248 ** necessary for scanning.249 **250 ** This function simply calls the internal function _MD_HomeGCRegisters().251 */252 NSPR_API(PRWord *) PR_GetGCRegisters(PRThread *t, int isCurrent, int *np);253 254 /*255 239 ** (Get|Set)ExecutionEnvironent 256 240 ** … … 273 257 NSPR_API(PRStatus) PR_EnumerateThreads(PREnumerator func, void *arg); 274 258 275 /*276 ** Signature of a thread stack scanning function. It is applied to every277 ** contiguous group of potential pointers within a thread. Count denotes the278 ** number of pointers.279 */280 typedef PRStatus281 (PR_CALLBACK *PRScanStackFun)(PRThread* t,282 void** baseAddr, PRUword count, void* closure);283 284 /*285 ** Applies scanFun to all contiguous groups of potential pointers286 ** within a thread. This includes the stack, registers, and thread-local287 ** data. If scanFun returns a status value other than PR_SUCCESS the scan288 ** is aborted, and the status value is returned.289 */290 NSPR_API(PRStatus)291 PR_ThreadScanStackPointers(PRThread* t,292 PRScanStackFun scanFun, void* scanClosure);293 294 /*295 ** Calls PR_ThreadScanStackPointers for every thread.296 */297 NSPR_API(PRStatus)298 PR_ScanStackPointers(PRScanStackFun scanFun, void* scanClosure);299 300 /*301 ** Returns a conservative estimate on the amount of stack space left302 ** on a thread in bytes, sufficient for making decisions about whether303 ** to continue recursing or not.304 */305 NSPR_API(PRUword)306 PR_GetStackSpaceLeft(PRThread* t);307 308 259 /*--------------------------------------------------------------------------- 309 260 ** THREAD CPU PRIVATE FUNCTIONS … … 355 306 356 307 /*--------------------------------------------------------------------------- 357 ** PLATFORM-SPECIFIC THREAD SYNCHRONIZATION FUNCTIONS358 ---------------------------------------------------------------------------*/359 #if defined(XP_MAC)360 361 NSPR_API(void) PR_Mac_WaitForAsyncNotify(PRIntervalTime timeout);362 NSPR_API(void) PR_Mac_PostAsyncNotify(PRThread *thread);363 364 #endif /* XP_MAC */365 366 /*---------------------------------------------------------------------------367 308 ** PLATFORM-SPECIFIC INITIALIZATION FUNCTIONS 368 309 ---------------------------------------------------------------------------*/ 369 #if defined(IRIX)370 /*371 ** Irix specific initialization funtion to be called before PR_Init372 ** is called by the application. Sets the CONF_INITUSERS and CONF_INITSIZE373 ** attributes of the shared arena set up by nspr.374 **375 ** The environment variables _NSPR_IRIX_INITUSERS and _NSPR_IRIX_INITSIZE376 ** can also be used to set these arena attributes. If _NSPR_IRIX_INITUSERS377 ** is set, but not _NSPR_IRIX_INITSIZE, the value of the CONF_INITSIZE378 ** attribute of the nspr arena is scaled as a function of the379 ** _NSPR_IRIX_INITUSERS value.380 **381 ** If the _PR_Irix_Set_Arena_Params() is called in addition to setting the382 ** environment variables, the values of the environment variables are used.383 **384 */385 NSPR_API(void) _PR_Irix_Set_Arena_Params(PRInt32 initusers, PRInt32 initsize);386 387 #endif /* IRIX */388 389 #if defined(XP_OS2)390 /*391 ** These functions need to be called at the start and end of a thread.392 ** An EXCEPTIONREGISTRATIONRECORD must be declared on the stack and its393 ** address passed to the two functions.394 */395 NSPR_API(void) PR_OS2_SetFloatExcpHandler(EXCEPTIONREGISTRATIONRECORD* e);396 NSPR_API(void) PR_OS2_UnsetFloatExcpHandler(EXCEPTIONREGISTRATIONRECORD* e);397 #endif /* XP_OS2 */398 399 310 /* I think PR_GetMonitorEntryCount is useless. All you really want is this... */ 400 311 #define PR_InMonitor(m) (PR_GetMonitorEntryCount(m) > 0)
Note:
See TracChangeset
for help on using the changeset viewer.