Coda Distributed File System
Classes | Functions | Variables
lwp_pt.c File Reference
#include <pthread.h>
#include <semaphore.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <signal.h>
#include <assert.h>
#include <lwp/lwp.h>
#include <lwp/lock.h>
#include "lwp.private_pt.h"
Include dependency graph for lwp_pt.c:

Classes

struct  lwp_forkinfo
 

Functions

int lwp_threads_waiting (void)
 
void lwp_LEAVE (PROCESS pid)
 
void lwp_YIELD (PROCESS pid)
 
int LWP_Init (int version, int priority, PROCESS *ret)
 
int LWP_CurrentProcess (PROCESS *pid)
 
int LWP_CreateProcess (void(*ep)(void *), int stacksize, int priority, void *parm, const char *name, PROCESS *ret)
 
int LWP_DestroyProcess (PROCESS pid)
 
int LWP_TerminateProcessSupport ()
 
int LWP_DispatchProcess (void)
 
int LWP_QSignal (PROCESS pid)
 
int LWP_QWait ()
 
int LWP_INTERNALSIGNAL (const void *event, int yield)
 
int LWP_MwaitProcess (int wcount, const void *evlist[])
 
int LWP_WaitProcess (const void *event)
 
int LWP_NewRock (int Tag, char *Value)
 
int LWP_GetRock (int Tag, char **Value)
 
char * LWP_Name (void)
 
int LWP_GetProcessPriority (PROCESS pid, int *priority)
 
void LWP_SetLog (FILE *file, int level)
 
PROCESS LWP_ThisProcess (void)
 
int LWP_StackUsed (PROCESS pid, int *max, int *used)
 
int LWP_Index ()
 
int LWP_HighestIndex ()
 
void LWP_UnProtectStacks ()
 
void LWP_ProtectStacks ()
 

Variables

int lwp_debug
 
int lwp_overflowAction
 
int lwp_stackUseEnabled
 
struct timeval last_context_switch
 
struct timeval cont_sw_threshold
 
struct timeval run_wait_threshold
 
FILE * lwp_logfile = NULL
 
int lwp_loglevel = 0
 
PROCESS lwp_cpptr = NULL
 

Function Documentation

◆ LWP_CreateProcess()

int LWP_CreateProcess ( void(*)(void *)  ep,
int  stacksize,
int  priority,
void *  parm,
const char *  name,
PROCESS ret 
)

◆ LWP_CurrentProcess()

int LWP_CurrentProcess ( PROCESS pid)

◆ LWP_DestroyProcess()

int LWP_DestroyProcess ( PROCESS  pid)

◆ LWP_DispatchProcess()

int LWP_DispatchProcess ( void  )

◆ LWP_GetProcessPriority()

int LWP_GetProcessPriority ( PROCESS  pid,
int *  priority 
)

◆ LWP_GetRock()

int LWP_GetRock ( int  Tag,
char **  Value 
)

◆ LWP_HighestIndex()

int LWP_HighestIndex ( )

◆ LWP_Index()

int LWP_Index ( )

◆ LWP_Init()

int LWP_Init ( int  version,
int  priority,
PROCESS ret 
)

◆ LWP_INTERNALSIGNAL()

int LWP_INTERNALSIGNAL ( const void *  event,
int  yield 
)

◆ lwp_LEAVE()

void lwp_LEAVE ( PROCESS  pid)

◆ LWP_MwaitProcess()

int LWP_MwaitProcess ( int  wcount,
const void *  evlist[] 
)

◆ LWP_Name()

char * LWP_Name ( void  )

◆ LWP_NewRock()

int LWP_NewRock ( int  Tag,
char *  Value 
)

◆ LWP_ProtectStacks()

void LWP_ProtectStacks ( )

◆ LWP_QSignal()

int LWP_QSignal ( PROCESS  pid)

◆ LWP_QWait()

int LWP_QWait ( )

◆ LWP_SetLog()

void LWP_SetLog ( FILE *  file,
int  level 
)

◆ LWP_StackUsed()

int LWP_StackUsed ( PROCESS  pid,
int *  max,
int *  used 
)

◆ LWP_TerminateProcessSupport()

int LWP_TerminateProcessSupport ( void  )

◆ LWP_ThisProcess()

PROCESS LWP_ThisProcess ( void  )

◆ lwp_threads_waiting()

int lwp_threads_waiting ( void  )

◆ LWP_UnProtectStacks()

void LWP_UnProtectStacks ( )

◆ LWP_WaitProcess()

int LWP_WaitProcess ( const void *  event)

◆ lwp_YIELD()

void lwp_YIELD ( PROCESS  pid)

Variable Documentation

◆ cont_sw_threshold

struct timeval cont_sw_threshold

◆ last_context_switch

struct timeval last_context_switch

◆ lwp_cpptr

PROCESS lwp_cpptr = NULL

◆ lwp_debug

int lwp_debug

◆ lwp_logfile

FILE* lwp_logfile = NULL

◆ lwp_loglevel

int lwp_loglevel = 0

◆ lwp_overflowAction

int lwp_overflowAction

◆ lwp_stackUseEnabled

int lwp_stackUseEnabled

◆ run_wait_threshold

struct timeval run_wait_threshold