r125: This commit was manufactured by cvs2svn to create tag 'r1_1_7-last'.
[cinelerra_cv/mob.git] / hvirtual / guicast / bcsignals.h
blob2ecadf881506f150007dfd80043fb4190cfd4bd7
1 #ifndef BCSIGNALS_H
2 #define BCSIGNALS_H
4 #include "arraylist.h"
5 #include "mutex.inc"
6 #include <signal.h>
8 #define TRON(x) BC_Signals::new_function(x);
9 #define TROFF(x) BC_Signals::delete_function(x);
11 class BC_Signals
13 public:
14 BC_Signals();
16 static void signal_entry(int signum);
17 virtual void signal_handler(int signum);
18 static void new_function(char *name);
19 static void delete_function(char *name);
20 static char* sig_to_str(int number);
22 // Table of functions currently running.
23 ArrayList <char*>execution_table;
24 static BC_Signals *signals_object;
25 Mutex *lock;
28 #endif