Skip to content

Commit

Permalink
#108 clear
Browse files Browse the repository at this point in the history
  • Loading branch information
kotbegemot committed Jan 5, 2022
1 parent d531cad commit 3806300
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
8 changes: 0 additions & 8 deletions header/actor-zeta/scheduler/scheduler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include <thread>
#include <vector>

#include <actor-zeta/clock/clock_thread_safe.hpp>
#include <actor-zeta/detail/ref_counted.hpp>
#include <actor-zeta/scheduler/scheduler_abstract.hpp>
#include <actor-zeta/scheduler/worker.hpp>
Expand Down Expand Up @@ -49,7 +48,6 @@ namespace actor_zeta { namespace scheduler {
w->start();
}

clock_.start_dispatch_loop();
}

void stop() override {
Expand Down Expand Up @@ -107,19 +105,13 @@ namespace actor_zeta { namespace scheduler {
policy_.foreach_resumable(w.get(), f);
}
policy_.foreach_central_resumable(this, f);
clock_.stop_dispatch_loop();
}

void enqueue(resumable* ptr) override {
policy_.central_enqueue(this, ptr);
}

clock::clock_t& clock() noexcept override {
return clock_;
}

private:
clock::thread_safe_clock_t clock_;
std::vector<std::unique_ptr<worker_type>> workers_;
policy_data data_;
Policy policy_;
Expand Down
3 changes: 0 additions & 3 deletions header/actor-zeta/scheduler/scheduler_abstract.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
#include <chrono>
#include <cstddef>

#include <actor-zeta/clock/clock.hpp>

#include "forwards.hpp"

namespace actor_zeta { namespace scheduler {
Expand All @@ -29,7 +27,6 @@ namespace actor_zeta { namespace scheduler {

virtual void start() = 0;
virtual void stop() = 0;
virtual clock::clock_t& clock() noexcept = 0;

protected:
std::atomic<size_t> next_worker_;
Expand Down

0 comments on commit 3806300

Please sign in to comment.