From: khizmax Date: Tue, 10 Mar 2015 13:39:59 +0000 (+0300) Subject: Fix pool_monitor ctor X-Git-Tag: v2.1.0~305^2~11 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=06b7898fbbdd73ae2bb118a95d725cc45766b7b1;p=libcds.git Fix pool_monitor ctor --- diff --git a/cds/sync/pool_monitor.h b/cds/sync/pool_monitor.h index 8045a59b..9b6b1926 100644 --- a/cds/sync/pool_monitor.h +++ b/cds/sync/pool_monitor.h @@ -143,7 +143,7 @@ namespace cds { namespace sync { /// Initializes the pool of \p nPoolCapacity preallocated mutexes pool_monitor( size_t nPoolCapacity ) - : m_Pool( nPoolCapacity) + : m_Pool( nPoolCapacity ? nPoolCapacity : 256 ) {} /// Makes exclusive access to node \p p