Log Message: |
Mutex class: Implemented bug detection and deadlock debugging features.
* Bug detection: By enabling macro DEBUG_MUTEX at compile time and
calling new method setDebugEnabled(true) at runtime, automatic bug
detection features are activated which e.g. raise an assertion fault
if a thread attempts to Unlock() a thread it does not own a lock on,
or when locking more than once while not using mutex type RECURSIVE
and much more.
* Deadlock debugging: Also if these features were activated like
described above, the most recent mutex lock is recorded by capturing
the name of the thread and the precise call stack which caused the
mutex lock. This information can be used to identify the exact
situation that lead to a dead lock efficiently with a debugger.
* Bumped version (2.1.1.svn53).
|