Skip to content

Commit

Permalink
fiber_props: virtual dtor
Browse files Browse the repository at this point in the history
  • Loading branch information
felixguendling committed Dec 2, 2024
1 parent f6bf5ff commit 0550118
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/motis/scheduler/scheduler_algo.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace motis {

struct fiber_props : public boost::fibers::fiber_properties {
fiber_props(boost::fibers::context*);
~fiber_props() override;

// In order to keep request latency low, finishing already started requests
// has to be prioritized over new requests. Otherwise, the server only starts
Expand Down
1 change: 1 addition & 0 deletions src/scheduler/scheduler_algo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ namespace bf = boost::fibers;
namespace motis {

fiber_props::fiber_props(bf::context* ctx) : fiber_properties{ctx} {}
fiber_props::~fiber_props() = default;

std::atomic<std::uint32_t> work_stealing::counter_{0};
std::vector<boost::intrusive_ptr<work_stealing> > work_stealing::schedulers_{};
Expand Down

0 comments on commit 0550118

Please sign in to comment.