add condition variable for windows
add condition variable for windows