00001 #ifndef __J2K__PRODUCER_HPP__ 00002 #define __J2K__PRODUCER_HPP__ 00003 00004 #include <j2k/nto/cs_def.hpp> 00005 00006 /*** Producer Side of the code ***/ 00007 class Producer 00008 : public Basic_PThread, 00009 public MsgContainer 00010 { 00011 protected: 00012 int idx; 00013 public: 00014 Producer( NameSpace* n0, int idx0 = 0 ); 00015 00016 void setPThread( pthread_t tid ); 00017 virtual ~Producer() { } 00018 00019 /*** Producer Side of the code ***/ 00020 virtual void run(); 00021 }; 00022 00023 #endif // End of Producer.hpp