Main Page   Compound List   File List   Compound Members   File Members  

lib/threads/pthreads.c File Reference

Gobj thread implementation via pthreads. More...

#include "../gobj/threads.h"
#include "../gobj/errors.h"

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

Gobj thread implementation via pthreads.


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:59 2001 for Gobj by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000