std atomic wait