With the introduction of variable conditions in Win32 C ++ program would be better to use the functions, classes and types of Win32 data (eg, CreateThread, SleepConditionVariableCS, WaitForSingleObjectEx, ReleaseMutex, CONDITION_VARIABLE) or those of the standard C ++ library 11 (eg, thread, wait, join, unlock, CONDITION_VARIABLE)?
CreateThread
SleepConditionVariableCS
WaitForSingleObjectEx
ReleaseMutex
CONDITION_VARIABLE
thread
wait
join
unlock
Since the answer to this question is probably not binary, what considerations should be taken into account when making such a decision?
++ ++. , RAII . .
, , API Windows. , ( ), .
, -.
, . , MinGW Windows , API POSIX Win32. , TDM-GCC, , 4.7.1 Win32, 4.8.1 POSIX. , Microsoft-, , .
POSIX, ++ (, thread, mutex, condition_variable). Win32, Win32.
mutex
condition_variable
TDM-GCC 4.7.1 ++, ( , ). MinGW "posix" "threads" . .
Source: https://habr.com/ru/post/1523921/More articles:FRP with Bacon.js - how to simulate a pause button? - javascriptArray chooses to get true and false arrays? - arraysPrintDocument always makes a difference - c #The RequireJS configuration ignored by inline requires calls following the script tag that loads my application - jqueryWhat is the default purpose of String.toLowerCase ()? - javaSpring Querying data from a method does not recognize a column - spring-dataError .NET Framework Windows XP, Visual Studio Express - windowsRegular expression pattern not matching input line - c #Need to free the contents of a QList? - c ++List of Python functions in the order they are defined in the module - pythonAll Articles