VirtualBox

Changeset 102211 in vbox for trunk/src/libs


Ignore:
Timestamp:
Nov 21, 2023 2:19:17 PM (16 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
160336
Message:

libs/xpcom: Remove now unused code in nsprpub, bugref:10545

Location:
trunk/src/libs/xpcom18a4
Files:
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/Makefile.kmk

    r102209 r102211  
    169169        nsprpub/pr/include/prclist.h \
    170170        nsprpub/pr/include/prcvar.h \
    171         nsprpub/pr/include/prinit.h \
    172171        nsprpub/pr/include/prinrval.h \
    173172        nsprpub/pr/include/prlock.h \
  • trunk/src/libs/xpcom18a4/nsprpub/pr/include/nspr.h

    r102209 r102211  
    4242#include "prclist.h"
    4343#include "prcvar.h"
    44 #include "prinit.h"
    4544#include "prinrval.h"
    4645#include "prlock.h"
  • trunk/src/libs/xpcom18a4/nsprpub/pr/src/misc/prinit.c

    r102207 r102211  
    5353PRBool _pr_initialized = PR_FALSE;
    5454
    55 
    56 PR_IMPLEMENT(PRBool) PR_Initialized(void)
    57 {
    58     return _pr_initialized;
    59 }
    60 
    6155PRInt32 _native_threads_only = 0;
    6256
     
    8680}
    8781
    88 PR_IMPLEMENT(void) PR_Init(
    89     PRThreadType type, PRThreadPriority priority, PRUintn maxPTDs)
    90 {
    91     _PR_ImplicitInitialization();
    92 }
    93 
    94 PR_IMPLEMENT(PRIntn) PR_Initialize(
    95     PRPrimordialFn prmain, PRIntn argc, char **argv, PRUintn maxPTDs)
    96 {
    97     PRIntn rv;
    98     _PR_ImplicitInitialization();
    99     rv = prmain(argc, argv);
    100         PR_Cleanup();
    101     return rv;
    102 }  /* PR_Initialize */
    103 
    10482/* prinit.c */
    10583
  • trunk/src/libs/xpcom18a4/nsprpub/pr/src/pthreads/ptthread.c

    r102209 r102211  
    233233}  /* _PR_InitThreads */
    234234
    235 PR_IMPLEMENT(PRStatus) PR_Cleanup(void)
    236 {
    237     PRThread *me = PR_GetCurrentThread();
    238     Log(("PR_Cleanup: shutting down NSPR\n"));
    239     Assert(me->state & PT_THREAD_PRIMORD);
    240     if (me->state & PT_THREAD_PRIMORD)
    241     {
    242         PR_Lock(pt_book.ml);
    243         while (pt_book.user > pt_book.this_many)
    244             PR_WaitCondVar(pt_book.cv, PR_INTERVAL_NO_TIMEOUT);
    245         PR_Unlock(pt_book.ml);
    246 
    247         /*
    248          * I am not sure if it's safe to delete the cv and lock here,
    249          * since there may still be "system" threads around. If this
    250          * call isn't immediately prior to exiting, then there's a
    251          * problem.
    252          */
    253         if (0 == pt_book.system)
    254         {
    255             PR_DestroyCondVar(pt_book.cv); pt_book.cv = NULL;
    256             PR_DestroyLock(pt_book.ml); pt_book.ml = NULL;
    257         }
    258         _pt_thread_death(me);
    259 
    260         _pr_initialized = PR_FALSE;
    261         return PR_SUCCESS;
    262     }
    263     return PR_FAILURE;
    264 }  /* PR_Cleanup */
    265 
    266235/* ptthread.c */
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