Mixes for Privacy and Anonymity in the Internet
Classes | Macros | Typedefs
CAThread.hpp File Reference

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)

◆ FINISH_STACK

#define FINISH_STACK (   methodName)

◆ INIT_STACK

#define INIT_STACK

◆ SAVE_STACK

#define SAVE_STACK (   methodName,
  methodPosition 
)

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.

◆ 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