projects
/
libcds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7759e6
)
Mark default ctor as =delete for segment
author
khizmax
<libcds.dev@gmail.com>
Mon, 3 Nov 2014 09:38:11 +0000
(12:38 +0300)
committer
khizmax
<libcds.dev@gmail.com>
Mon, 3 Nov 2014 09:38:11 +0000
(12:38 +0300)
cds/intrusive/segmented_queue.h
patch
|
blob
|
history
diff --git
a/cds/intrusive/segmented_queue.h
b/cds/intrusive/segmented_queue.h
index 2e41c4e0a464b17ec64812efa1ebcba07311663c..8ba29ca29c00cc6ce9cdea066b6e3c37b45723f4 100644
(file)
--- a/
cds/intrusive/segmented_queue.h
+++ b/
cds/intrusive/segmented_queue.h
@@
-223,6
+223,8
@@
namespace cds { namespace intrusive {
init( nCellCount );
}
+ segment() = delete;
+
void init( size_t nCellCount )
{
atomics::atomic< cell > * pLastCell = cells + nCellCount;
@@
-230,9
+232,6
@@
namespace cds { namespace intrusive {
pCell->store( cell(), atomics::memory_order_relaxed );
atomics::atomic_thread_fence( memory_model::memory_order_release );
}
-
- private:
- segment(); //=delete
};
typedef typename opt::details::alignment_setter< atomics::atomic<segment *>, traits::alignment >::type aligned_segment_ptr;