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

« back to all changes in this revision

Viewing changes to mozilla/nsprpub/pr/src/threads/combined/pruthr.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:
49
49
#pragma warning(disable : 4101)
50
50
#endif          
51
51
 
52
 
#if defined(XP_MAC)
53
 
#include <LowMem.h>
54
 
#endif
55
 
 
56
52
/* _pr_activeLock protects the following global variables */
57
53
PRLock *_pr_activeLock;
58
54
PRInt32 _pr_primordialExitCount;   /* In PR_Cleanup(), the primordial thread
98
94
void _PR_InitThreads(PRThreadType type, PRThreadPriority priority,
99
95
    PRUintn maxPTDs)
100
96
{
101
 
#if defined(XP_MAC)
102
 
#pragma unused (maxPTDs)
103
 
#endif
104
 
 
105
97
    PRThread *thread;
106
98
    PRThreadStack *stack;
107
99
 
116
108
#else
117
109
#if defined(SOLARIS) || defined (UNIXWARE) && defined (USR_SVR4_THREADS)
118
110
    stack->stackTop = (char*) &thread;
119
 
#elif defined(XP_MAC)
120
 
    stack->stackTop = (char*) LMGetCurStackBase();
121
111
#else
122
112
    stack->stackTop = (char*) ((((long)&type + _pr_pageSize - 1)
123
113
                >> _pr_pageShift) << _pr_pageShift);
923
913
                /*
924
914
                * skip non-schedulable threads
925
915
                */
926
 
#if !defined(XP_MAC)
927
916
                PR_ASSERT(!(thread->flags & _PR_IDLE_THREAD));
928
 
#endif
929
917
                if ((thread->no_sched) && (me != thread)){
930
918
                    thread = NULL;
931
919
                    continue;
1005
993
_PR_AttachThread(PRThreadType type, PRThreadPriority priority,
1006
994
    PRThreadStack *stack)
1007
995
{
1008
 
#if defined(XP_MAC)
1009
 
#pragma unused (type)
1010
 
#endif
1011
 
 
1012
996
    PRThread *thread;
1013
997
    char *mem;
1014
998
 
1047
1031
                     PRUint32 stackSize,
1048
1032
                     PRUint32 flags)
1049
1033
{
1050
 
#if defined(XP_MAC)
1051
 
#pragma unused (scope)
1052
 
#endif
1053
 
 
1054
1034
    PRThread *thread;
1055
1035
 
1056
1036
    thread = _PR_AttachThread(type, priority, NULL);
1504
1484
PR_IMPLEMENT(PRThread*) PR_AttachThread(PRThreadType type,
1505
1485
    PRThreadPriority priority, PRThreadStack *stack)
1506
1486
{
1507
 
#ifdef XP_MAC
1508
 
#pragma unused( type, priority, stack )
1509
 
#endif
1510
1487
    return PR_GetCurrentThread();
1511
1488
}
1512
1489