Mixe for Privacy and Anonymity in the Internet
Classes | Macros | Typedefs
CAThread.hpp File Reference
#include "CAMsg.hpp"
Include dependency graph for CAThread.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CAThread
 

Macros

#define INIT_STACK
 
#define BEGIN_STACK(methodName)
 
#define FINISH_STACK(methodName)
 
#define SAVE_STACK(methodName, methodPosition)
 

Typedefs

typedef THREAD_RETURN(* THREAD_MAIN_TYP) (void *)
 Defines the type of the main function of the thread. More...
 
typedef unsigned long long thread_id_t
 Type of an ID for a thread which can be used to identify the current and other threads. More...
 

Macro Definition Documentation

◆ BEGIN_STACK

#define BEGIN_STACK (   methodName)

Definition at line 49 of file CAThread.hpp.

◆ FINISH_STACK

#define FINISH_STACK (   methodName)

Definition at line 50 of file CAThread.hpp.

◆ INIT_STACK

#define INIT_STACK

Definition at line 48 of file CAThread.hpp.

◆ SAVE_STACK

#define SAVE_STACK (   methodName,
  methodPosition 
)

Definition at line 51 of file CAThread.hpp.

Typedef Documentation

◆ thread_id_t

typedef unsigned long long thread_id_t

Type of an ID for a thread which can be used to identify the current and other threads.

Definition at line 70 of file CAThread.hpp.

◆ THREAD_MAIN_TYP

typedef THREAD_RETURN(* THREAD_MAIN_TYP) (void *)

Defines the type of the main function of the thread.

The main function has one argument of type void*. The exit points of the main function should be THREAD_RETURN_SUCCESS or THREAD_RETRUN_ERROR.

Example:

THREAD_RETURN myMainFunction(void* param)
{
doSomething;
}
#define THREAD_RETURN
Definition: StdAfx.h:540
#define THREAD_RETURN_SUCCESS
Definition: StdAfx.h:542

Definition at line 67 of file CAThread.hpp.