mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-15 02:36:40 -04:00
added console and a few commands
This commit is contained in:
parent
e717badc45
commit
73b949fb2e
28 changed files with 807 additions and 87 deletions
|
@ -22,6 +22,13 @@ public:
|
|||
--i;
|
||||
}
|
||||
}
|
||||
++_calls;
|
||||
_calls.notify_all();
|
||||
}
|
||||
|
||||
void wait_for_advance_write_pos() {
|
||||
auto v = _calls.load();
|
||||
_calls.wait(v);
|
||||
}
|
||||
|
||||
template<std::invocable<WaveMixer<channels> &> Fn>
|
||||
|
@ -99,6 +106,7 @@ protected:
|
|||
|
||||
std::mutex _mx;
|
||||
std::vector<Track> _tracks;
|
||||
std::atomic<unsigned int> _calls = {0};
|
||||
|
||||
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue