chenBright commented on code in PR #3270:
URL: https://github.com/apache/brpc/pull/3270#discussion_r3370598254


##########
src/bthread/task_control.cpp:
##########
@@ -205,11 +207,28 @@ TaskControl::TaskControl()
     , _status(print_rq_sizes_in_the_tc, this)
     , _nbthreads("bthread_count")
     , _enable_priority_queue(FLAGS_enable_bthread_priority_queue)
-    , _priority_queues(FLAGS_task_group_ntags)
+    , _pq_num_of_each_tag(FLAGS_event_dispatcher_num)
+    , _priority_queues(FLAGS_task_group_ntags * FLAGS_event_dispatcher_num)

Review Comment:
   If priority_queues only applies to EventDispatcher, then does that mean we 
only need one slot per EventDispatcher, and not a queue per EventDispatcher?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to