added libs and oalist
[mines3d.git] / threads / thread_controller.h
blob7b43f31cff06b46025b9d256055162d2581d5a72
1 #include <pthread.h>
2 #include "../core/board.h"
4 #ifndef THREAD_CONT_H
5 #define THREAD_CONT_H
7 class Thread_controller
9 public:
11 int * selected;
12 int * dim;
13 int id;
14 Board * b;
16 pthread_t pthread1;
17 pthread_mutex_t mutex;
19 void (*ptf)(void);
20 void (*ptf_end)(void);
22 Thread_controller(void);
23 ~Thread_controller(void);
24 void cancel_glut_thread(void);
25 void run_thread(void);
26 void update_data(int x,int y,int z,Board * brd);
27 void mutex_lock(void);
28 void mutex_unlock(void);
33 #endif