00001 #include <j2k/Fred/QNX/System.hpp>
00002
00003
00004 #define MSG_DATA_TYPE 126
00005 #define MSG_KILL_THREAD 255
00006
00007 #define MSG_FUNCTION_CALL 0x40
00008 #define MSG_TIMER_CALL 0x20
00009 #define MSG_VALID 0x01
00010 #define MSG_NOP 0x00
00011
00012
00013 class MsgData {
00014 private:
00015 serial_t Serialization;
00016
00017 public:
00018 int Identification;
00019
00020 int task;
00021 int index;
00022
00023 int value[10];
00024 char* s;
00025
00026 int kind;
00027 void* p;
00028
00029 int valid;
00030
00031
00032
00033
00034
00035
00036
00037
00038 MsgData( int tsk = MSG_KILL_THREAD, int idx = -1 )
00039 : Serialization(MSG_DATA_SERIAL),
00040 task(tsk), index(idx), valid(1) { }
00041
00042 Show() {
00043 printf("\nSerial# [%u]", Serialization );
00044 printf("\nTask[%d], Index[%d], Valid[%d]", task, index, valid );
00045 printf("\nString[%s], NullPtr[%d]", s, (p == NULL) );
00046 }
00047
00048 };