@@ -71,9 +71,9 @@ auto ReadyQueue::pop() -> Reaction* {
71
71
72
72
// If there is no ready reaction available, wait until there is one.
73
73
while (old_size <= 0 ) {
74
- log ::Debug () << " (Worker " << Worker ::current_worker_id () << " ) Wait for work" ;
74
+ log ::Debug () << " (Worker " << DefaultWorker ::current_worker_id () << " ) Wait for work" ;
75
75
sem_.acquire ();
76
- log ::Debug () << " (Worker " << Worker ::current_worker_id () << " ) Waking up" ;
76
+ log ::Debug () << " (Worker " << DefaultWorker ::current_worker_id () << " ) Waking up" ;
77
77
old_size = size_.fetch_sub (1 , std::memory_order_acq_rel);
78
78
// FIXME: Protect against underflow?
79
79
}
@@ -344,15 +344,15 @@ void Scheduler::set_port(BasePort* port) {
344
344
// We do not check here if port is already in the list. This means clean()
345
345
// could be called multiple times for a single port. However, calling
346
346
// clean() multiple time is not harmful and more efficient then checking if
347
- set_ports_[Worker ::current_worker_id ()].push_back (port);
347
+ set_ports_[DefaultWorker ::current_worker_id ()].push_back (port);
348
348
349
349
// recursively search for triggered reactions
350
350
set_port_helper (port);
351
351
}
352
352
353
353
void Scheduler::set_port_helper (BasePort* port) {
354
354
for (auto * reaction : port->triggers ()) {
355
- triggered_reactions_[Worker ::current_worker_id ()].push_back (reaction);
355
+ triggered_reactions_[DefaultWorker ::current_worker_id ()].push_back (reaction);
356
356
}
357
357
for (auto * binding : port->outward_bindings ()) {
358
358
set_port_helper (binding);
0 commit comments