i'd normally complain about .lock() and .unlock() directly instead of CSingleLock, but i guess it's okay for a oneliner ;-)