From 71da1f106e0d9451556720b8315f7db0f24383b7 Mon Sep 17 00:00:00 2001 From: khizmax Date: Thu, 9 Mar 2017 00:41:55 +0300 Subject: [PATCH] Changed default back-off strategy --- cds/container/mspriority_queue.h | 3 +-- cds/intrusive/mspriority_queue.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/cds/container/mspriority_queue.h b/cds/container/mspriority_queue.h index 387fa3b6..62c12cf7 100644 --- a/cds/container/mspriority_queue.h +++ b/cds/container/mspriority_queue.h @@ -66,8 +66,7 @@ namespace cds { namespace container { /// Move policy /** - The move policy used in \p MSPriorityQueue::pop functions - to move item's value. + The move policy used in \p MSPriorityQueue::pop() function to move item's value. Default is \p opt::v::assignment_move_policy. */ typedef cds::opt::v::assignment_move_policy move_policy; diff --git a/cds/intrusive/mspriority_queue.h b/cds/intrusive/mspriority_queue.h index e342fcc5..a41cd989 100644 --- a/cds/intrusive/mspriority_queue.h +++ b/cds/intrusive/mspriority_queue.h @@ -121,7 +121,7 @@ namespace cds { namespace intrusive { typedef cds::sync::spin lock_type; /// Back-off strategy - typedef backoff::yield back_off; + typedef backoff::Default back_off; /// Internal statistics /** -- 2.34.1