Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
solaris.c File Reference
#include "primpl.h"

Go to the source code of this file.


void _MD_SET_PRIORITY (_MDThread *md, PRThreadPriority newPri)
PRIntervalTime _MD_Solaris_TicksPerSecond (void)
PRIntervalTime _MD_Solaris_GetInterval (void)


PRBool suspendAllOn

Function Documentation

Definition at line 57 of file solaris.c.

    union {
       hrtime_t hrt;  /* hrtime_t is a 64-bit (long long) integer */
       PRInt64 pr64;
    } time;
    PRInt64 resolution;
    PRIntervalTime ticks;

    time.hrt = gethrtime();  /* in nanoseconds */
     * Convert from nanoseconds to ticks.  A tick's resolution is
     * 10 microseconds, or 10000 nanoseconds.
    LL_I2L(resolution, 10000);
    LL_DIV(time.pr64, time.pr64, resolution);
    LL_L2UI(ticks, time.pr64);
    return ticks;

Definition at line 46 of file solaris.c.

     * Ticks have a 10-microsecond resolution.  So there are
     * 100000 ticks per second.
    return 100000UL;

Variable Documentation

Definition at line 86 of file pruthr.c.

Definition at line 87 of file pruthr.c.