Skip to content

Commit

Permalink
change parking slot to 32
Browse files Browse the repository at this point in the history
  • Loading branch information
dataroaring committed Sep 15, 2023
1 parent 9e2e4b0 commit 1c37e66
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 1c37e66

Please sign in to comment.