Visual Assert – The Unit Testing Add-In for Visual C++
cfix – C/C++ Unit Testing for Win32 and NT
 
 

CfixCreateThread

CfixCreateThread

Synopsis

Use CfixCreateThread whenever you need to create a thread from within a test case and intend to call cfix APIs (i.e. CFIX_ASSERT etc) on this thread. CfixCreateThread is a wrapper for CreateThread with the added functionality that the thread is registered so that cfix can properly relate any assertions etc. raised on this thread to the current test case.

See MSDN for discussion of parameters and usage description.

Declaration
CFIXAPI HANDLE CFIXCALLTYPE CfixCreateThread(
	__in_opt PSECURITY_ATTRIBUTES ThreadAttributes,
	__in SIZE_T StackSize,
	__in PTHREAD_START_ROUTINE StartAddress,
	__in_opt PVOID Parameter,
	__in DWORD CreationFlags,
	__out_opt PDWORD ThreadId
	);
				
Remarks

This routine has been superseded by CfixCreateThread2. Calling CfixCreateThread is equivalent to calling CfixCreateThread2 with parameter Flags set to 0.

Requirements

Table 7.14. 

 User ModeKernel Mode
Available since1.0Not supported
HeaderDeclared in cfix.hNot supported
LibraryLink to cfix.libNot supported
DLLcfix.dllN/A