Skip to content

Commit

Permalink
[improvement](brpc) change parking slot to 32
Browse files Browse the repository at this point in the history
  • Loading branch information
dataroaring committed Sep 18, 2023
1 parent 1ac7c8f commit c7e06bc
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions thirdparty/patches/brpc-task_control_parking_slot.patch
Original file line number Diff line number Diff line change
@@ -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<std::string> _status;
bvar::Adder<int64_t> _nbthreads;

- static const int PARKING_LOT_NUM = 4;
+ static const int PARKING_LOT_NUM = 32;
ParkingLot _pl[PARKING_LOT_NUM];
};

0 comments on commit c7e06bc

Please sign in to comment.