Back to index

lightning-sunbird  0.9+nobinonly
Functions
reliantunix.c File Reference
#include "primpl.h"
#include <ucontext.h>

Go to the source code of this file.

Functions

void _MD_EarlyInit (void)
PRWord_MD_HomeGCRegisters (PRThread *t, int isCurrent, int *np)
void _MD_SET_PRIORITY (_MDThread *thread, PRUintn newPri)
PRStatus _MD_InitializeThread (PRThread *thread)
PRStatus _MD_WAIT (PRThread *thread, PRIntervalTime ticks)
PRStatus _MD_WAKEUP_WAITER (PRThread *thread)
void _MD_YIELD (void)
PRStatus _MD_CREATE_THREAD (PRThread *thread, void(*start)(void *), PRUintn priority, PRThreadScope scope, PRThreadState state, PRUint32 stackSize)

Function Documentation

PRStatus _MD_CREATE_THREAD ( PRThread thread,
void(*)(void *)  start,
PRUintn  priority,
PRThreadScope  scope,
PRThreadState  state,
PRUint32  stackSize 
)

Definition at line 120 of file reliantunix.c.

{
    PR_NOT_REACHED("_MD_CREATE_THREAD should not be called for SINIX.");
#if defined(SNI) && !defined(__GNUC__)
    /* make compiler happy */
    return (PRStatus)NULL;
#endif
}

Definition at line 45 of file reliantunix.c.

{
}
PRWord* _MD_HomeGCRegisters ( PRThread t,
int  isCurrent,
int np 
)

Definition at line 49 of file reliantunix.c.

{
    if (isCurrent) {
       (void) _GETCONTEXT(CONTEXT(t));
    }
    *np = sizeof(CONTEXT(t)) / sizeof(PRWord);
    return (PRWord *) CONTEXT(t);
}

Definition at line 89 of file reliantunix.c.

{
       return PR_SUCCESS;
}
void _MD_SET_PRIORITY ( _MDThread thread,
PRUintn  newPri 
)

Definition at line 83 of file reliantunix.c.

{
    return;
}
PRStatus _MD_WAIT ( PRThread thread,
PRIntervalTime  ticks 
)

Definition at line 95 of file reliantunix.c.

{
    PR_ASSERT(!(thread->flags & _PR_GLOBAL_SCOPE));
    _PR_MD_SWITCH_CONTEXT(thread);
    return PR_SUCCESS;
}

Here is the call graph for this function:

Definition at line 103 of file reliantunix.c.

{
    if (thread) {
       PR_ASSERT(!(thread->flags & _PR_GLOBAL_SCOPE));
    }
    return PR_SUCCESS;
}

Definition at line 114 of file reliantunix.c.

{
    PR_NOT_REACHED("_MD_YIELD should not be called for SINIX.");
}