threads in ACE use to perform different operation -


is possible use ace threads in c++ execution of different tasks?

e.g if suppose user create 2 threads named threada , threadb. once finish execution on functions, can use same thread threada , threadb other operation?

if possible how ?

please me in regard.

thanks & regrads vikas

what's benefits? anyway, can create own class derive ace_task

class myjob : public ace_task< ace_mt_synch > {     public:       ......     //derived ace_task     virtual int open( void *arg = null );     //derived ace_task     virtual int svc(); } 

than call

this->activate(); 

in open(); run job in

int svc() {     while( _running )        .... } 

you can pass messages warpped ace_message_block( myjob::putq( ace_message_block *pmb, ace_time_value &timeout) ) myjob, choose do.


Comments