Skip to content

Commit

Permalink
event/uring/Manager: un-inline the ctor
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKellermann committed Jan 20, 2025
1 parent 410a871 commit 36f8a80
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
11 changes: 11 additions & 0 deletions src/event/uring/Manager.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@

namespace Uring {

Manager::Manager(EventLoop &event_loop,
unsigned entries, unsigned flags)
:Queue(entries, flags),
event(event_loop, BIND_THIS_METHOD(OnReady),
GetFileDescriptor()),
defer_submit_event(event_loop,
BIND_THIS_METHOD(DeferredSubmit))
{
event.ScheduleRead();
}

void
Manager::OnReady(unsigned) noexcept
{
Expand Down
10 changes: 1 addition & 9 deletions src/event/uring/Manager.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,7 @@ class Manager final : public Queue {

public:
explicit Manager(EventLoop &event_loop,
unsigned entries=1024, unsigned flags=0)
:Queue(entries, flags),
event(event_loop, BIND_THIS_METHOD(OnReady),
GetFileDescriptor()),
defer_submit_event(event_loop,
BIND_THIS_METHOD(DeferredSubmit))
{
event.ScheduleRead();
}
unsigned entries=1024, unsigned flags=0);

void SetVolatile() noexcept {
volatile_event = true;
Expand Down

0 comments on commit 36f8a80

Please sign in to comment.