Mixe for Privacy and Anonymity in the Internet
Classes | Defines | 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
 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.

Definition at line 70 of file CAThread.hpp.

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

Definition at line 67 of file CAThread.hpp.