event/Loop: set the uring_initialized flag
Don't attempt to initialize the io_uring subsystem more than once.
This commit is contained in:
parent
6682cf749f
commit
ca0179b2a9
@ -55,6 +55,7 @@ Uring::Queue *
|
|||||||
EventLoop::GetUring() noexcept
|
EventLoop::GetUring() noexcept
|
||||||
{
|
{
|
||||||
if (!uring_initialized) {
|
if (!uring_initialized) {
|
||||||
|
uring_initialized = true;
|
||||||
try {
|
try {
|
||||||
uring = std::make_unique<Uring::Manager>(*this);
|
uring = std::make_unique<Uring::Manager>(*this);
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
|
Loading…
Reference in New Issue
Block a user