tnlThread.h File Reference
tnlThread.h File Reference
#include "tnl.h"
#include "tnlNetBase.h"
#include "tnlMethodDispatch.h"
#include <pthread.h>
#include <semaphore.h>
Define Documentation
#define TNL_DECLARE_THREADQ_METHOD |
( |
func, |
|
|
args |
|
) |
|
|
|
Value: void func args; \
void func##_body args
Declares a ThreadQueue method on a subclass of ThreadQueue.
|
#define TNL_IMPLEMENT_THREADQ_METHOD |
( |
className, |
|
|
func, |
|
|
args, |
|
|
argNames |
|
) |
|
|
|
Value: void className::func args { \
FunctorDecl<void (className::*)args> *theCall = new FunctorDecl<void (className::*)args>(&className::func##_body); \
theCall->set argNames; \
postCall(theCall); \
}\
void className::func##_body args
Declares the implementation of a ThreadQueue method.
|