atomic.cpp: allow waiting on multiple variables simultaneously

Arbitrary maximum set to 8, but really we need 2, maybe 3.
Added atomic_wait::list object for multi-waiting.
Added atomic_wait::get_unique_tsc just in case.
This commit is contained in:
Nekotekina 2020-11-07 01:23:29 +03:00
parent bd0b292b39
commit 0bd989b118
3 changed files with 353 additions and 50 deletions

View file

@ -16,6 +16,7 @@
#include <linux/futex.h>
#include <sys/time.h>
#include <unistd.h>
#include <fcntl.h>
#endif
#include <algorithm>
#include <ctime>