我了解这个pool的put和set依赖于go的具体调度, 那么比如我有3个p,p1,p2,p3. 比如p3下的一个goroutine执行了put操作,不考虑往当下p3的private和public塞的情况,
我的问题是:p3可能put到p1和p2的pool里吗? 能力有限的看了下代码,发现是pushHead。意思是p的public是固定的大小,大了就会覆盖对吗
// pushHead adds val at the head of the queue. It returns false if the
// queue is full. It must only be called by a single producer.
有疑问加站长微信联系(非本文作者)
