//$$CDS-header$$
-#ifndef __CDS_OPT_OPTIONS_H
-#define __CDS_OPT_OPTIONS_H
+#ifndef CDSLIB_OPT_OPTIONS_H
+#define CDSLIB_OPT_OPTIONS_H
/*
Framework to define template options
typedef typename cds::opt::select_default< cds::opt::none, cds::sync::spin >::type default_spin;
// spin_32bit is cds::sync::reentrant_spin32
- typedef typename cds::opt::select_default< cds::lock::Spin32, cds::sync::reentrant_spin32 >::type spin_32bit;
+ typedef typename cds::opt::select_default< cds::opt::none, cds::sync::reentrant_spin32 >::type spin_32bit;
\endcode
*/
template <typename Option, typename Default, typename Value = Option>
//@endcond
};
+ /// [type-option] @ref cds_sync_monitor "Monitor" type setter
+ /**
+ This option setter specifyes @ref cds_sync_monitor "synchronization monitor"
+ for blocking container.
+ */
+ template <typename Type>
+ struct sync_monitor {
+ //@cond
+ template <class Base> struct pack : public Base
+ {
+ typedef Type sync_monitor;
+ };
+ //@endcond
+ };
+
/// [type-option] Back-off strategy option setter
/**
Back-off strategy used in some algorithm.
#include <cds/opt/make_options_var.h>
-#endif // #ifndef __CDS_OPT_OPTIONS_H
+#endif // #ifndef CDSLIB_OPT_OPTIONS_H