SIP Witch 1.9.15
[フレーム]
Data Structures | Functions
oSIP Thread Routines

Data Structures

struct   osip_thread
  Structure for referencing a thread. More...
 

Functions

struct osip_threadosip_thread_create (int stacksize, void *(*func)(void *), void *arg)
  Allocate (or initialise if a thread address is given) More...
 
int  osip_thread_join (struct osip_thread *thread)
  Join a thread. More...
 
int  osip_thread_set_priority (struct osip_thread *thread, int priority)
  Set the priority of a thread. More...
 
void  osip_thread_exit (void)
  Exit from a thread. More...
 

Detailed Description

Function Documentation

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

#include <osip_mt.h>

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  )

#include <osip_mt.h>

Exit from a thread.

int osip_thread_join ( struct osip_threadthread )

#include <osip_mt.h>

Join a thread.

Parameters
thread The thread to join.
int osip_thread_set_priority ( struct osip_threadthread,
int  priority 
)

#include <osip_mt.h>

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 Dec 21, 2017 for sipwitch-1.9.15 (*.h and *.cpp), libosip2-5.0.0 (*.h) and libeXosip2-4.0.0 (*.h), by   doxygen 1.8.6

AltStyle によって変換されたページ (->オリジナル) /