I make a WorkQueue inherited from IceUtil::Thread;
like this
WorkQueuePtr h = new WorkQueue();
IceUtil::ThreadControl control = h->start();
First I call
control.yield();
want to stop the h thread.
And I call
control = h->start();
again .this code throw.
.\Thread.cpp:227: IceUtil::ThreadStartedException
My question is how can I re-start a thread ?

Reply With Quote