Fixed LazyList when a lock type is specified
authorkhizmax <libcds.dev@gmail.com>
Sun, 14 Feb 2016 08:21:44 +0000 (11:21 +0300)
committerkhizmax <libcds.dev@gmail.com>
Sun, 14 Feb 2016 08:21:44 +0000 (11:21 +0300)
cds/container/details/make_lazy_list.h

index 41be82c242decd698fa471b48e250976713174a7..e57eeff24cf2502c729c1c09ad6db6dfdae159dd 100644 (file)
@@ -97,8 +97,8 @@ namespace cds { namespace container {
 
             struct intrusive_traits: public original_type_traits
             {
-                typedef intrusive::lazy_list::base_hook< opt::gc<gc> >  hook;
-                typedef node_deallocator               disposer;
+                typedef intrusive::lazy_list::base_hook< opt::gc<gc>, cds::opt::lock_type< typename original_type_traits::lock_type >>  hook;
+                typedef node_deallocator disposer;
                 static CDS_CONSTEXPR const opt::link_check_type link_checker = cds::intrusive::lazy_list::traits::link_checker;
 
                 typedef typename std::conditional< std::is_same< typename original_type_traits::equal_to, cds::opt::none >::value,