CCritSec Debug Functions (Windows Embedded CE 6.0)
1/6/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. |