From 1c37e66946adb7587e268cf3df123bbcf1d02e08 Mon Sep 17 00:00:00 2001 From: Yongqiang YANG Date: Fri, 15 Sep 2023 16:11:19 +0800 Subject: [PATCH] change parking slot to 32 --- .../patches/brpc-task_control_parking_slot.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 thirdparty/patches/brpc-task_control_parking_slot.patch diff --git a/thirdparty/patches/brpc-task_control_parking_slot.patch b/thirdparty/patches/brpc-task_control_parking_slot.patch new file mode 100644 index 00000000000000..55a4d00a33236b --- /dev/null +++ b/thirdparty/patches/brpc-task_control_parking_slot.patch @@ -0,0 +1,13 @@ +diff --git a/src/bthread/task_control.h b/src/bthread/task_control.h +index fd40d6ce..e966f3e6 100644 +--- a/src/bthread/task_control.h ++++ b/src/bthread/task_control.h +@@ -111,7 +111,7 @@ private: + bvar::PassiveStatus _status; + bvar::Adder _nbthreads; + +- static const int PARKING_LOT_NUM = 4; ++ static const int PARKING_LOT_NUM = 32; + ParkingLot _pl[PARKING_LOT_NUM]; + }; +