Object pool pattern: Difference between revisions

Content deleted Content added
SieBot (talk | contribs)
m robot Adding: zh:对象池模式
m Class diagram: rm broken link
Line 23:
 
If the pool is used by multiple threads, it may need means to prevent parallel threads from grabbing and trying to reuse the same object in parallel. This is not necessary if the pooled objects are immutable or otherwise thread-safe.
 
== Class diagram==
[[Image:Object_pool1.png]]
 
== Criticism ==