I am using ObjectLevel locking with Loki::Lock objects , but I notice they are not designed to be nested. For example, if an outer function has a Lock object and calls an inner function with a Lock object, the object mutex will be released when the inner function returns and the inner Lock object is destroyed. I am wondering why the Loki::Mutex object does not have a "lockcounter" that increments on Lock() operations and decrements on UnLock operations and only 'really' Locks and UnLocks when the counter is zero. Or am I missing something obvious here….
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.