thread.h File Reference

Descripes the Thread structures, functions and constants. More...

#include "../jnilib.h"

Include dependency graph for thread.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  Thread_
 A structure for C, which describes the Thread. More...
struct  ThreadCPP_
 A structure for C++, which describes the Thread. More...
struct  ThreadData
 This structure holds the data needed for the Thread for C and C++. More...

Defines

#define CLS_THREAD   "at/fhv/sgr/threading/JNIThread"
 Defines the full name of the JNIThread-Thread-Class.
#define createThread   createThreadC
 Defines which function to call when createThread is called.
#define deleteThread   deleteThreadC
 Defines which function to call when deleteThread is called.

Typedefs

typedef Thread_ Thread
 Defines which structure is used as Thread.
typedef Thread_ Thread_
 A structure for C, which describes the Thread.
typedef ThreadCPP_ ThreadCPP_
 A structure for C++, which describes the Thread.
typedef ThreadData ThreadData
 This structure holds the data needed for the Thread for C and C++.

Functions

void createThreadC (Thread_ *thread, void(*func)())
 Function is called when working with C and calling the function createThread.
void createThreadCPP (ThreadCPP_ *thread, void(*func)())
 Function is called when working with C++ and calling the function createThread.
void deleteThreadC (Thread_ *thread)
 Function is called when working with C and calling the function deleteThread.
void deleteThreadCPP (ThreadCPP_ *thread)
 Function is called when working with C++ and calling the function deleteThread.


Detailed Description

Descripes the Thread structures, functions and constants.

A thread is a thread of execution in a program.

Author:
Stefan Gruber
Date:
19.11.2005

Definition in file thread.h.


Define Documentation

#define CLS_THREAD   "at/fhv/sgr/threading/JNIThread"
 

Defines the full name of the JNIThread-Thread-Class.

Definition at line 20 of file thread.h.

#define createThread   createThreadC
 

Defines which function to call when createThread is called.

Definition at line 32 of file thread.h.

#define deleteThread   deleteThreadC
 

Defines which function to call when deleteThread is called.

Definition at line 33 of file thread.h.


Typedef Documentation

typedef struct Thread_ Thread
 

Defines which structure is used as Thread.

Definition at line 31 of file thread.h.

typedef struct Thread_ Thread_
 

A structure for C, which describes the Thread.

typedef struct ThreadCPP_ ThreadCPP_
 

A structure for C++, which describes the Thread.

typedef struct ThreadData ThreadData
 

This structure holds the data needed for the Thread for C and C++.


Function Documentation

void createThreadC Thread_ thread,
void(*)()  func
 

Function is called when working with C and calling the function createThread.

It initializes the Thread_ structure.

Parameters:
thread - A pointer to a Thread_ structure.
func - The function to call back.

Definition at line 153 of file thread.c.

void createThreadCPP ThreadCPP_ thread,
void(*)()  func
 

Function is called when working with C++ and calling the function createThread.

It initializes the ThreadCPP_ structure.

Parameters:
thread - A pointer to a ThreadCPP_ structure.
func - The function to call back.

Definition at line 140 of file thread.c.

void deleteThreadC Thread_ thread  ) 
 

Function is called when working with C and calling the function deleteThread.

Parameters:
thread - A pointer to a Thread_ structure.

Definition at line 183 of file thread.c.

void deleteThreadCPP ThreadCPP_ thread  ) 
 

Function is called when working with C++ and calling the function deleteThread.

Parameters:
thread - A pointer to a ThreadCPP_ structure.

Definition at line 173 of file thread.c.


Generated on Sat Nov 19 14:11:15 2005 for GrubC by  doxygen 1.4.4