42 |
#include <X11/keysym.h> |
#include <X11/keysym.h> |
43 |
|
|
44 |
#include <vob/os/Os.hxx> |
#include <vob/os/Os.hxx> |
45 |
|
#include <vob/Debug.hxx> |
46 |
|
|
47 |
|
|
48 |
|
|
51 |
#define BARF(m) { cerr << m << "\n"; exit(18); } |
#define BARF(m) { cerr << m << "\n"; exit(18); } |
52 |
|
|
53 |
|
|
|
#define DBG(cname) if(!cname);else (std::cout << "CallGL: ") |
|
54 |
|
|
55 |
namespace Vob { |
namespace Vob { |
56 |
namespace Os { |
namespace Os { |
57 |
|
|
58 |
bool dbg; |
DBGVAR(dbg, "Os"); |
59 |
|
|
60 |
using std::cerr; |
using std::cerr; |
61 |
using std::cout; |
using std::cout; |
684 |
DBG(dbg) << "Emptying interrupt pipe\n"; |
DBG(dbg) << "Emptying interrupt pipe\n"; |
685 |
while(read(interruptPipe[0], &b, 4) > 0) { |
while(read(interruptPipe[0], &b, 4) > 0) { |
686 |
DBG(dbg) << "Got "<<b[0]<<" "<<b[1]<<" "<<b[2]<< " "<<b[3]<<"\n"; |
DBG(dbg) << "Got "<<b[0]<<" "<<b[1]<<" "<<b[2]<< " "<<b[3]<<"\n"; |
687 |
|
wait = false; |
688 |
} |
} |
689 |
DBG(dbg) << "Empty\n"; |
DBG(dbg) << "Empty\n"; |
690 |
|
continue; |
691 |
} |
} |
692 |
|
|
693 |
|
|