public:
explicit PosixNetworkStack(CephContext *c);
- void spawn_worker(unsigned i, std::function<void ()> &&func) override {
+ void spawn_worker(std::function<void ()> &&func) override {
threads.emplace_back(std::move(func));
}
void join_worker(unsigned i) override {
}
// direct is used in tests only
- virtual void spawn_worker(unsigned i, std::function<void ()> &&) = 0;
+ virtual void spawn_worker(std::function<void ()> &&) = 0;
virtual void join_worker(unsigned i) = 0;
virtual bool is_ready() { return true; };
return r;
}
-void DPDKStack::spawn_worker(unsigned i, std::function<void ()> &&func)
+void DPDKStack::spawn_worker(std::function<void ()> &&func)
{
// create a extra master thread
//
{}
virtual bool support_local_listen_table() const override { return true; }
- virtual void spawn_worker(unsigned i, std::function<void ()> &&func) override;
+ virtual void spawn_worker(std::function<void ()> &&func) override;
virtual void join_worker(unsigned i) override;
};
return w;
}
-void RDMAStack::spawn_worker(unsigned i, std::function<void ()> &&func)
+void RDMAStack::spawn_worker(std::function<void ()> &&func)
{
threads.emplace_back(std::move(func));
}
virtual ~RDMAStack();
virtual bool nonblock_connect_need_writable_event() const override { return false; }
- virtual void spawn_worker(unsigned i, std::function<void ()> &&func) override;
+ virtual void spawn_worker(std::function<void ()> &&func) override;
virtual void join_worker(unsigned i) override;
virtual bool is_ready() override { return fork_finished.load(); };
virtual void ready() override { fork_finished = true; };