From 06b7898fbbdd73ae2bb118a95d725cc45766b7b1 Mon Sep 17 00:00:00 2001 From: khizmax Date: Tue, 10 Mar 2015 16:39:59 +0300 Subject: [PATCH] Fix pool_monitor ctor --- cds/sync/pool_monitor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.34.1