Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

oSIP Thread Routines
[The OS port modules]


Classes

struct  osip_thread

Functions

struct osip_threadosip_thread_create (int stacksize, void *(*func)(void *), void *arg)
int osip_thread_join (struct osip_thread *thread)
int osip_thread_set_priority (struct osip_thread *thread, int priority)
void osip_thread_exit (void)

Function Documentation

struct struct osip_thread* osip_thread_create int  stacksize,
void *(*)(void *)  func,
void *  arg
 

Allocate (or initialise if a thread address is given)

Parameters:
stacksize The stack size of the thread. (20000 is a good value)
func The method where the thread start.
arg A pointer on the argument given to the method 'func'.

void osip_thread_exit void   ) 
 

Exit from a thread.

int osip_thread_join struct osip_thread thread  ) 
 

Join a thread.

Parameters:
thread The thread to join.

int osip_thread_set_priority struct osip_thread thread,
int  priority
 

Set the priority of a thread. (NOT IMPLEMENTED ON ALL SYSTEMS)

Parameters:
thread The thread to work on.
priority The priority value to set.


Generated on Tue Feb 22 00:59:47 2005 for libosip by  doxygen 1.4.1