Closed CarterLi closed 2 years ago
mcfgthread is linked against no CRT, so those functions don't exist.
However programs that use your lib call those functions
For example: https://github.com/lhmouse/mcfgthread/blob/master/mutex_performance.c#L96
If you link against the CRT as a DLL (such MSVCRT or UCRT) then there is no problem or leak whatsoever. It only makes a difference if you link against a static CRT.
If you link against the CRT as a DLL (such MSVCRT or UCRT) then there is no problem or leak whatsoever. It only makes a difference if you link against a static CRT.
citation needed
Why don't you read UCRT source yourself? If you have Windows SDK install you should have had it.
It uses CreateThread
However MSDN suggests using _beginthreadex when a thread calls the C run-time library (CRT) which I assume everyone ( that has Win32 programming experience ) knows.
Why did you do that?