Main Page   Compound List   File List   Compound Members   File Members  

lib/gobj/threads.h File Reference

Multithreading support. More...

#include <gobjconfig.h>
#include <gobj/decls.h>
#include <pthread.h>

Typedefs

typedef void Gj_ThreadEntry (void*)
 Thread entry function prototype.

typedef pthread_t Gj_ThreadId
 Thread id type.


Functions

int Gj_thread_new (Gj_Ctx* ctx, Gj_ThreadId* id, Gj_ThreadEntry* entry, void* arg)
 Create a new thread and stores its id in *id. More...

void Gj_thread_exit (void* ret)
 Exit the actual thread (self) with the given return value. More...


Detailed Description

Multithreading support.


Function Documentation

int Gj_thread_new ( Gj_Ctx * ctx,
Gj_ThreadId * id,
Gj_ThreadEntry * entry,
void * arg )
 

Create a new thread and stores its id in *id.

Returns:
0 on success, -1 otherwise.

void Gj_thread_exit ( void * ret )
 

Exit the actual thread (self) with the given return value.

Parameters:
ret   The return value.


Generated at Fri Aug 17 18:28:58 2001 for Gobj by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000