CCritSec Debug Functions
A version of this page is also available for
4/8/2010
The Wxutil.h header file in the DirectShow base classes provides functions to make deadlocks easier to track.
It is useful to insert an assertion in the code that says whether a critical section is owned or not.
Routines that do the checking are global functions, to avoid having different numbers of member functions in the debug and release class implementations of CCritSec.
Wxutil.h also provides a routine that enables you to trace usage of specific critical sections. Because of the large number of critical sections, this assertion defaults to off.
Programming element | Description |
---|---|
Checks that the current thread is the owner of the given critical section. |
|
Checks that the current thread is not the owner of the given critical section. |
|
Enables or disables debug logging of a given critical section. |