Generic Lightweight Thread (GLT) Library  2.5
A common API for Lightweight Thread solutions
 All Functions Variables Groups Pages
Functions
Util functions

Functions

int glt_get_thread_num ()
 Obtains the number of the current thread. More...
 
int glt_get_num_threads ()
 Returns the total number of threads. More...
 

Detailed Description

These functions return values from the environment set up.

Function Documentation

int glt_get_num_threads ( )

Returns the total number of threads.

glt_get_num_threads() returns the number threads.

Returns
The number of GLT_threads.
int glt_get_thread_num ( )

Obtains the number of the current thread.

glt_get_thread_num() returns the number of the current thread.

Returns
The number of the current GLT_thread.