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

Classes

class  CAThread
 This class could be used for creating a new thread. More...

Defines

#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.
typedef unsigned long thread_id_t
 Type of an ID for a thread which can be used to identify the current and other threads.

Define Documentation

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

Typedef Documentation

typedef unsigned long thread_id_t

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

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;
        THREAD_RETURN_SUCCESS;
   }