event/Loop: set the uring_initialized flag
Don't attempt to initialize the io_uring subsystem more than once.
This commit is contained in:
@ -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 (...) {
|
||||||
|
Reference in New Issue
Block a user