Public Member Functions | |
CBS_CriticalSection (CBS_Trace *pTrace, BOOL bShowAllEnterNLeave=FALSE) | |
void | DeleteBSCriticalSection () |
void | EnterBSCriticalSection (LPCSTR lpComment, LPCSTR lpFileName, UINT nLine) |
void | FreeResources () |
DWORD | GetOwnerThreadID () |
CBS_Trace * | GetTrace () |
void | InitializeBSCriticalSection (LPCTSTR lpFileName, UINT nLine) |
BOOL | IsLocked () |
void | LeaveBSCriticalSection (LPCSTR lpComment, LPCSTR lpFileName, UINT nLine) |
BOOL | SetShowAllEnterNLeave (BOOL bSet) |
CBS_Trace * | SetTrace (CBS_Trace *pTrace) |
virtual | ~CBS_CriticalSection () |
Protected Attributes | |
LPVOID | m_pCSData |
Private member for internal use. |
|
Constructur of CBS_CriticalSection class.
|
|
Destroy the object. |
|
Deletes the critical section. If there are threads waiting for the critical section, it will be reported to the trace (if the trace is valid) and the critical section will not be removed from the Resource Track object, so when the application will exit it will be reported. If the application wants to use the object again, it must call InitializeCriticalSection().
|
|
Enters the critical section. This function is overwritten with the following macro:
|
|
Free the resources allocated by the current object. This method should be invoked only once, it will assert if it called more then once. The object can not be used after this function is invoked.
|
|
Get the ID of the thread that currently own the critical section.
|
|
See return.
|
|
Initializes the critical section object.
|
|
Checks if the critical section is locked for the calling thread.
|
|
Leave the critical section. This function is overwritten with the following macro:
|
|
Change the value of ShowAllEnterNLeave flag
|
|
Sets a trace object to the current object.
|
Bitspot AG |
||
Phone: |
+41 41 755 11 22 |
|
Fax: |
+41 41 755 11 31 |
|
e-mail: |
||
Web: |
||