Active object: Difference between revisions

C++ spacing
m (Automated syntax highlighting fixup (second round - minor fixes))
(C++ spacing)
Line 341:
void Integrator::do_work()
{
while (continue_.test_and_set()) {
integrate();
std::this_thread::sleep_for(1ms);
Line 353:
dur_t start = t_prev - beginning;
dur_t fin = now - beginning;
if (func)
state += (func(start.count()) + func(fin.count())) * (fin - start).count() / 2;
t_prev = now;
1

edit