C++ _beginthreadex in cygwin
- by Hugh
Hello all,
I am aware that _beginthreadex is part of the MSCVRT functions and therefore not accessible via Cygwin/MinGW
uintptr_t _beginthreadex(
void *security,
unsigned stack_size,
unsigned ( __stdcall *start_address )( void * ),
void *arglist,
unsigned initflag,
unsigned *thrdaddr
);
However, _beginthreadex does call upon CreateThread().
HANDLE CreateThread(
LPSECURITY_ATTRIBUTES secAttr,
SIZE_T stackSize,
LPTHREAD_START_ROUTINE threadFunc,
LPVOID param,
DWORD flags,
LPDWORD threadID
);
However, does anyone have a wrapper or a URL to a library that is compatible with Cygwin/WinGW. Or can offer some advice? As this is the last little piece of moving from VSutdio Project over to makefiles for Windows/Darwin/Linux.
Thanks.