From f39cd9252addfa2d55d92bebc671746c4f766b37 Mon Sep 17 00:00:00 2001 From: Dan Engelbrecht Date: Fri, 18 Nov 2022 14:26:39 +0100 Subject: create matching number of asio worker thread as UE has in client connections --- zencore/include/zencore/intmath.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'zencore/include') diff --git a/zencore/include/zencore/intmath.h b/zencore/include/zencore/intmath.h index f24caed6e..608ce2962 100644 --- a/zencore/include/zencore/intmath.h +++ b/zencore/include/zencore/intmath.h @@ -176,6 +176,12 @@ Max(auto x, auto y) return x > y ? x : y; } +constexpr auto +Clamp(auto x, auto l, auto h) +{ + return x < l ? l : x < h ? x : h; +} + ////////////////////////////////////////////////////////////////////////// void intmath_forcelink(); // internal -- cgit v1.2.3