/** wait for message from listener specifying that countdown to release of resource should commence */ void CConcurrentTimeOutNotifierStep::StartCountdownL() { if ( iCountdown ) { return; } iCountdown = SharedCountL(KSharedClients) > 0; if (iCountdown) { iStart.UniversalTime(); SetSharedTextL(KSharedClients, KNullDesC, EFalse); } }
/** each listener appends a charcter to shared memory KSharedClients once it has received all notifications from this thread, this returns length of string */ TInt CConcurrentNotifierStep::ReceivedCountL() { return SharedCountL(KSharedClients); }