Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

mythread.h File Reference

#include <sched.h>
#include <iostream.h>
#include "semaphore.h"
#include <pthread.h>
#include "misc.h"

Go to the source code of this file.

Compounds

class  Thread

Defines

#define DEFINE_TEMPLATE_THREAD_CLASS(T, Etype)
#define DEFINE_THREAD_CLASS(T)   DEFINE_TEMPLATE_THREAD_CLASS(T, void)

Typedefs

typedef void *(* void_t )(void *)

Functions

void Thread_ThreadRun (Thread *th)


Define Documentation

#define DEFINE_TEMPLATE_THREAD_CLASS T,
Etype   
 

Value:

class T : public Thread {\
        private: void Run(Etype *v = NULL); \
                 void RunMain(void *v = NULL) { Run(reinterpret_cast<Etype*>(v)); } \
        public: T(Semaphore *sem = NULL, int pri = 0) : Thread(sem,pri) {}; \
                ~T() {Exit();} \
                int Start(Etype *v) {return StartMain(reinterpret_cast<void*>(v));} \
        }

#define DEFINE_THREAD_CLASS T       DEFINE_TEMPLATE_THREAD_CLASS(T, void)
 


Typedef Documentation

typedef void*(* void_t)(void *)
 


Function Documentation

void Thread_ThreadRun Thread   th [inline]
 


Generated on Sun Jun 16 17:36:43 2002 for Anirudh's Vortex-Wake Simulation Code by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001