From aa99ae997b2ddd6f9d273bda95a908fde03dcad2 Mon Sep 17 00:00:00 2001 From: Marc-Antoine Perennou Date: Sun, 19 Jul 2020 21:14:25 +0200 Subject: [PATCH] parking: ensure Reactor is initialized when creating a Parker Signed-off-by: Marc-Antoine Perennou --- src/parking.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/parking.rs b/src/parking.rs index 9f14211..6065ae0 100644 --- a/src/parking.rs +++ b/src/parking.rs @@ -59,6 +59,8 @@ impl Parker { }, }; PARKER_COUNT.fetch_add(1, Ordering::SeqCst); + // We use the Reactor in Drop, so ensure it's properly initialized since it's lazy + Reactor::get(); parker }