~ubuntu-branches/ubuntu/quantal/nspr/quantal-security

« back to all changes in this revision

Viewing changes to mozilla/nsprpub/pr/src/misc/prinit.c

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Sack
  • Date: 2009-08-10 11:34:26 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20090810113426-3uv4diflrkcbdimm
Tags: 4.8-0ubuntu1
* New upstream release: 4.8 (LP: #387812)
* adjust patches to changed upstreanm codebase
  - update debian/patches/99_configure.patch
* update shlibs symbols to include new API elements
  - update debian/libnspr4-0d.symbols

Show diffs side-by-side

added added

removed removed

Lines of Context:
233
233
    _PR_InitCMon();
234
234
    _PR_InitIO();
235
235
    _PR_InitNet();
 
236
    _PR_InitTime();
236
237
    _PR_InitLog();
237
238
    _PR_InitLinker();
238
239
    _PR_InitCallOnce();
239
240
    _PR_InitDtoa();
240
 
    _PR_InitTime();
241
241
    _PR_InitMW();
242
242
    _PR_InitRWLocks();
243
243
 
295
295
PR_IMPLEMENT(void) PR_Init(
296
296
    PRThreadType type, PRThreadPriority priority, PRUintn maxPTDs)
297
297
{
298
 
#if defined(XP_MAC)
299
 
#pragma unused (type, priority, maxPTDs)
300
 
#endif
301
 
 
302
298
    _PR_ImplicitInitialization();
303
299
}
304
300
 
305
301
PR_IMPLEMENT(PRIntn) PR_Initialize(
306
302
    PRPrimordialFn prmain, PRIntn argc, char **argv, PRUintn maxPTDs)
307
303
{
308
 
#if defined(XP_MAC)
309
 
#pragma unused (maxPTDs)
310
 
#endif
311
 
 
312
304
    PRIntn rv;
313
305
    _PR_ImplicitInitialization();
314
306
    rv = prmain(argc, argv);
402
394
        while (_pr_userActive > _pr_primordialExitCount) {
403
395
            PR_WaitCondVar(_pr_primordialExitCVar, PR_INTERVAL_NO_TIMEOUT);
404
396
        }
 
397
        if (me->flags & _PR_SYSTEM) {
 
398
            _pr_systemActive--;
 
399
        } else {
 
400
            _pr_userActive--;
 
401
        }
405
402
        PR_Unlock(_pr_activeLock);
406
403
 
407
404
#ifdef IRIX
857
854
PRBool _PR_Obsolete(const char *obsolete, const char *preferred)
858
855
{
859
856
#if defined(DEBUG)
860
 
#ifndef XP_MAC
861
857
    PR_fprintf(
862
858
        PR_STDERR, "'%s' is obsolete. Use '%s' instead.\n",
863
859
        obsolete, (NULL == preferred) ? "something else" : preferred);
864
 
#else
865
 
#pragma unused (obsolete, preferred)
866
 
#endif
867
860
#endif
868
861
    return PR_FALSE;
869
862
}  /* _PR_Obsolete */