Mercurial > hg > Members > kono > Cerium
view TaskManager/kernel/ppe/Threads.h @ 824:3468641f22d7
Thread.h fix?
author | yutaka@localhost.localdomain |
---|---|
date | Mon, 24 May 2010 23:51:40 +0900 |
parents | 19c6cdeb23d6 |
children | bed529c55eda |
line wrap: on
line source
#ifndef INCLUDED_THREADS #define INCLUDED_THREADS #include <pthread.h> class Threads { public: /* constructor */ Threads(int num = 1) {}; virtual ~Threads() {}; /* functions */ virtual void init() = 0; virtual int get_mail(int speid, int count, memaddr *ret) = 0; // BLOCKING virtual int has_mail(int speid, int count, memaddr *ret) = 0; // NONBLOCK virtual void send_mail(int speid, int num, memaddr *data) = 0; // BLOCKING /* variables */ pthread_t *threads; int cpu_num; }; #endif