News SF.net Project Frequently Asked Questions Documentation Downloads Mailing Lists How to Contribute

SourceForge.net Logo

Changing the way games are made and played.

tnlThread.h File Reference

tnlThread.h File Reference

#include "tnl.h"
#include "tnlNetBase.h"
#include "tnlMethodDispatch.h"
#include <pthread.h>
#include <semaphore.h>

Namespaces

namespace  TNL

Defines

#define TNL_DECLARE_THREADQ_METHOD(func, args)
 Declares a ThreadQueue method on a subclass of ThreadQueue.

#define TNL_IMPLEMENT_THREADQ_METHOD(className, func, args, argNames)
 Declares the implementation of a ThreadQueue method.


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.