VirtualBox

Ignore:
Timestamp:
Nov 4, 2023 6:16:01 PM (18 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
159872
Message:

libs/xpcom: Remove prthinfo which isn't used, bugref:10545

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/nsprpub/pr/include/private/pprthred.h

    r11780 r101776  
    6969#define PR_ResumeAll VBoxNsprPR_ResumeAll
    7070#define PR_GetSP VBoxNsprPR_GetSP
    71 #define PR_GetGCRegisters VBoxNsprPR_GetGCRegisters
    7271#define GetExecutionEnvironment VBoxNsprGetExecutionEnvironment
    7372#define SetExecutionEnvironment VBoxNsprSetExecutionEnvironment
     
    238237
    239238/*
    240 ** Save the registers that the GC would find interesting into the thread
    241 ** "t". isCurrent will be non-zero if the thread state that is being
    242 ** saved is the currently executing thread. Return the address of the
    243 ** first register to be scanned as well as the number of registers to
    244 ** scan in "np".
    245 **
    246 ** If "isCurrent" is non-zero then it is allowed for the thread context
    247 ** area to be used as scratch storage to hold just the registers
    248 ** 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 /*
    255239** (Get|Set)ExecutionEnvironent
    256240**
     
    273257NSPR_API(PRStatus) PR_EnumerateThreads(PREnumerator func, void *arg);
    274258
    275 /*
    276 ** Signature of a thread stack scanning function. It is applied to every
    277 ** contiguous group of potential pointers within a thread. Count denotes the
    278 ** number of pointers.
    279 */
    280 typedef PRStatus
    281 (PR_CALLBACK *PRScanStackFun)(PRThread* t,
    282                               void** baseAddr, PRUword count, void* closure);
    283 
    284 /*
    285 ** Applies scanFun to all contiguous groups of potential pointers
    286 ** within a thread. This includes the stack, registers, and thread-local
    287 ** data. If scanFun returns a status value other than PR_SUCCESS the scan
    288 ** 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 left
    302 ** on a thread in bytes, sufficient for making decisions about whether
    303 ** to continue recursing or not.
    304 */
    305 NSPR_API(PRUword)
    306 PR_GetStackSpaceLeft(PRThread* t);
    307 
    308259/*---------------------------------------------------------------------------
    309260** THREAD CPU PRIVATE FUNCTIONS             
     
    355306
    356307/*---------------------------------------------------------------------------
    357 ** PLATFORM-SPECIFIC THREAD SYNCHRONIZATION FUNCTIONS
    358 ---------------------------------------------------------------------------*/
    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 /*---------------------------------------------------------------------------
    367308** PLATFORM-SPECIFIC INITIALIZATION FUNCTIONS
    368309---------------------------------------------------------------------------*/
    369 #if defined(IRIX)
    370 /*
    371 ** Irix specific initialization funtion to be called before PR_Init
    372 ** is called by the application. Sets the CONF_INITUSERS and CONF_INITSIZE
    373 ** attributes of the shared arena set up by nspr.
    374 **
    375 ** The environment variables _NSPR_IRIX_INITUSERS and _NSPR_IRIX_INITSIZE
    376 ** can also be used to set these arena attributes. If _NSPR_IRIX_INITUSERS
    377 ** is set, but not _NSPR_IRIX_INITSIZE, the value of the CONF_INITSIZE
    378 ** attribute of the nspr arena is scaled as a function of the
    379 ** _NSPR_IRIX_INITUSERS value.
    380 **
    381 ** If the _PR_Irix_Set_Arena_Params() is called in addition to setting the
    382 ** 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 its
    393 ** 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 
    399310/* I think PR_GetMonitorEntryCount is useless. All you really want is this... */
    400311#define PR_InMonitor(m)         (PR_GetMonitorEntryCount(m) > 0)
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette