[Ace-users] thread state
joe
joelihn at hotmail.com
Thu Feb 28 03:38:45 CST 2008
ACE VERSION: 5.5.10
HOST MACHINE and OPERATING SYSTEM: winxp
COMPILER NAME AND VERSION (AND PATCHLEVEL): g++
THE $ACE_ROOT/ace/config.h FILE : #include "ace/config-win32.h"
THE $ACE_ROOT/include/makeinclude/platform_macros.GNU
FILE :platform_macros.GNU
DESCRIPTION:
I have a class named A, inherited from ACE_Task<ACE_MT_SYNCH>,it has
a private member variable named unsigned int thr_state_;
class A: public ACE_Task<ACE_MT_SYNCH> {
public:
...
virtual unsigned int get_thr_state(void) const {
return thr_state_;
...
}
private:
unsigned int thr_state_;
};
When A activated like this:
A->activate(THR_NEW_LWP | THR_JOINABLE, 1, 1)
I can use func A->get_thr_state() get the thread`s state;
But when A activated like this:
A->activate(THR_NEW_LWP | THR_JOINABLE, 4, 1),there are four same
threads,how can i get each of them state?
Any information or comment would be much appreciated.
More information about the Ace-users
mailing list