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

« back to all changes in this revision

Viewing changes to mozilla/nsprpub/pr/tests/alarm.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:
58
58
 
59
59
#include "prlog.h"
60
60
#include "prinit.h"
61
 
#ifdef XP_MAC
62
 
#include "pralarm.h"
63
 
#else
64
61
#include "obsolete/pralarm.h"
65
 
#endif
66
62
#include "prlock.h"
67
63
#include "prlong.h"
68
64
#include "prcvar.h"
78
74
#include <sys/time.h>
79
75
#endif
80
76
 
81
 
#ifdef XP_MAC
82
 
#include "prlog.h"
83
 
#define printf PR_LogPrint
84
 
extern void SetupMacPrintfLog(char *logFile);
85
 
#endif
86
 
 
87
77
static PRIntn debug_mode;
88
78
static PRIntn failed_already=0;
89
79
static PRThreadScope thread_scope = PR_LOCAL_THREAD;
296
286
 
297
287
static PRBool AlarmFn2(PRAlarmID *id, void *clientData, PRUint32 late)
298
288
{
299
 
#if defined(XP_MAC)
300
 
#pragma unused (id)
301
 
#endif
302
 
 
303
289
    PRBool keepGoing;
304
290
    PRStatus rv = PR_SUCCESS;
305
291
    AlarmData *ad = (AlarmData*)clientData;
534
520
 
535
521
        if (debug_mode)         
536
522
        printf("Alarm: Using %d cpu(s)\n", cpus);
537
 
#ifdef XP_MAC
538
 
        SetupMacPrintfLog("alarm.log");
539
 
        debug_mode = 1;
540
 
#endif
541
523
 
542
524
    for (cpu = 1; cpu <= cpus; ++cpu)
543
525
    {