Changeset 7439 in orxonox.OLD
- Timestamp:
- Apr 29, 2006, 2:50:42 AM (19 years ago)
- Location:
- branches/signals/src/util
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/signals/src/util/signal_handler.cc
r7366 r7439 15 15 16 16 #include "signal_handler.h" 17 18 #ifndef __WIN32__ 17 19 18 20 SignalHandler * SignalHandler::singletonRef = NULL; … … 109 111 } 110 112 113 #endif /* __WIN32__ */ -
branches/signals/src/util/signal_handler.h
r7361 r7439 9 9 #include <list> 10 10 #include <string> 11 #include <signal.h>12 11 13 12 #define GDB_BT_FILE "orxonox.backtrace" 13 14 enum GdbRunType{ 15 GDB_RUN_WRITE_TO_FILE = 1, 16 GDB_RUN_IN_FOREGROUND 17 }; 18 19 20 #ifndef __WIN32__ 21 #include <signal.h> 14 22 15 23 struct SignalRec … … 19 27 }; 20 28 29 21 30 typedef std::list<SignalRec> SignalRecList; 22 23 enum GdbRunType{24 GDB_RUN_WRITE_TO_FILE = 1,25 GDB_RUN_IN_FOREGROUND26 };27 31 28 32 class SignalHandler … … 50 54 }; 51 55 56 #else /* if defined __WIN32__ */ 57 class SignalHandler 58 { 59 inline static SignalHandler* getInstance() {}; 60 void doCatch( std::string appName, GdbRunType type = GDB_RUN_WRITE_TO_FILE ) {}; 61 void dontCatch() {}; 62 }; 63 #endif 52 64 53 65 #endif /* _SIGNAL_HANDLER_H */
Note: See TracChangeset
for help on using the changeset viewer.