-
Notifications
You must be signed in to change notification settings - Fork 380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test and Potential Fix for Issue #363 Native Windows Condition Variables do not set errno to ETIME #364
base: master
Are you sure you want to change the base?
Test and Potential Fix for Issue #363 Native Windows Condition Variables do not set errno to ETIME #364
Conversation
… a wait on a condition variable times out. Added an additional case to the ACE_FAIL_RETURN macro to mutate ERROR_TIMEOUT into ETIME. Added an additional check at the end of the implementation of ACE_Condition<T>::wait(ACE_Time_Value*) to mutate WIN32 errors into errno (as expected).
FYI, because ACE_HAS_WTHREADS_CONDITION_VARIABLE is not defined by any of the CI or regular scoreboard builds none will test the core changes and the support for this |
|
||
//============================================================================= | ||
/** | ||
* @file Native_Condition_Variable_Test.cpp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would propose to remove Native_ from the name of this test, it just tests the condition variable behavior on any platform
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, I will probably change it to something like Condition_Variable_Timeout_Test.
…re general nature of the test and better indicate what is being tested.
…_RETURN now uses this method. Allows for a new macro ACE_FAIL_RETVAL which will mutate the last error and provide a value without requiring to return from a function. * Updated Win32 configuration to include native condition variables by default for Windows Vista / Windows Server 2008 and newer.
… checks correctly and not automatically default to Windows XP support.
It might be worth considering revisiting the MSVC configuration files to enable ACE_HAS_WTHREADS_CONDITION_VARIABLE (with appropriate include statements) for Windows Vista/Server2008 and beyond.