#include "inlinemutex.hfa" void main( Cleaner & this ) { waitfor( cleanup : this ) { sout | "Cleaning"; } waitfor( ^?{} : this ) { sout | "Done"; } }