1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-21 02:17:08 +00:00

Allows cartridges to filter based on the actor talking to them; corrects outstanding_machines access error.

This commit is contained in:
Thomas Harte
2018-02-10 17:11:16 -05:00
parent 43b682a5af
commit eb39617ad0
10 changed files with 41 additions and 38 deletions
@@ -34,10 +34,11 @@ void MultiCRTMachine::perform_parallel(const std::function<void(::CRTMachine::Ma
});
}
do {
while(true) {
std::unique_lock<std::mutex> lock(mutex);
condition.wait(lock);
} while(outstanding_machines);
if(!outstanding_machines) break;
}
}
void MultiCRTMachine::perform_serial(const std::function<void (::CRTMachine::Machine *)> &function) {
@@ -89,17 +90,17 @@ bool MultiCRTMachine::get_clock_is_unlimited() {
}
void MultiCRTMachine::did_change_machine_order() {
// TODO
// TODO: shuffle delegates and announce potential output rate changes.
}
void MultiCRTMachine::set_delegate(::CRTMachine::Machine::Delegate *delegate) {
// TODO
// TODO:
}
void MultiCRTMachine::machine_did_change_clock_rate(Machine *machine) {
// TODO
// TODO: consider passing along.
}
void MultiCRTMachine::machine_did_change_clock_is_unlimited(Machine *machine) {
// TODO
// TODO: consider passing along.
}