I write an active class with internal worker thread. So I need to perform synchronously an instance initialization. In ConstructL I have:
In 2nd edition I can handle this by implementing interface with CActiveScheduler::OnStarting, but it's not compatible with 3nd edition. This problem I already faced with in previous version of my class. Then I was forced to use CActiveSchedulerWait (by spinlocking IsStarted). Is there a more elegant way without using CActiveSchedulerWait? Thank you.
// create a worker thread and run it
innerThreadName, ThreadFunction, KDefaultStackSize, 0, this));
// wait for CActiveScheduler::Start