From: Maged Michael Date: Tue, 9 Jan 2018 00:29:24 +0000 (-0800) Subject: UnboundedBlockingQueue: Adjust segment size X-Git-Tag: v2018.01.15.00~39 X-Git-Url: http://demsky.eecs.uci.edu/git/?p=folly.git;a=commitdiff_plain;h=4591832b4885f166236acee689dd2b11e3b3135b UnboundedBlockingQueue: Adjust segment size Summary: Adjust the segment size of the `UnboundedQueue` to 64 instead of 256, a size more suitable for CPUThreadPoolExecutor::CPUTask elements. Reviewed By: djwatson Differential Revision: D6665918 fbshipit-source-id: c34c4fa936ee5c6d6a3dd4489129c936369f3980 --- diff --git a/folly/executors/task_queue/UnboundedBlockingQueue.h b/folly/executors/task_queue/UnboundedBlockingQueue.h index cfab6545..c6a53590 100644 --- a/folly/executors/task_queue/UnboundedBlockingQueue.h +++ b/folly/executors/task_queue/UnboundedBlockingQueue.h @@ -46,7 +46,7 @@ class UnboundedBlockingQueue : public BlockingQueue { private: LifoSem sem_; - UMPMCQueue queue_; + UMPMCQueue queue_; }; } // namespace folly