Dear All,
I am getting different behaviour of condition::timed_wait() function when I compile my code with NDEBUG flag and without NDEBUG flag.
with using NDEBUG flag, timed_wait() wait for condition (mutext) as desired but whey I don't use NDEBUG flag while compiling my code it does wait for condition (mutex) but return at the same time when it is called. In both the cases return value is 1.
Please note that it is not a race condition but it is happening every time.
Also note that I am using other flags too for compiling my code like
-Werror -pthread -fno-strict-aliasing -Wno-unused-variable -Wno-unused-parameter -Wno-unused-function -O3 -ggdb3 -m64
Please let me know what can be possible impact of NDEBUG flag on timed_wait() function.
Thanking you
Vishal