I have a class derived from CActive class.
Is there a way to specifically wait on an instance of the class?

I found CActiveScheduler::WaitForAnyRequest() which I assume I can use to wait continuosly, and each time it returns I can check my object. Is that a good idea? Can I assume the scheduler I get from CActiveScheduler::Current() contains my CActive object.

I also thought about using User::WaitForRequest() but I'm not sure how I connect the speicifc TRequestStatus with my CActive object.

Any comments will be appreciated.

Yaron Tadmor