projects
/
junction.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixes #19. Add destructor to ConditionBank.
[junction.git]
/
junction
/
striped
/
ConditionBank.h
diff --git
a/junction/striped/ConditionBank.h
b/junction/striped/ConditionBank.h
index 25566372fdd172fef9f9bf79bd2ba4ae42013e18..163bc31155a35b58d5ff0f9b3701a7ef8ae4a8c8 100644
(file)
--- a/
junction/striped/ConditionBank.h
+++ b/
junction/striped/ConditionBank.h
@@
-1,6
+1,6
@@
/*------------------------------------------------------------------------
Junction: Concurrent data structures in C++
/*------------------------------------------------------------------------
Junction: Concurrent data structures in C++
- Copyright (c) 2016 Jeff Preshing
+ Copyright (c) 2016
-2017
Jeff Preshing
Distributed under the Simplified BSD License.
Original location: https://github.com/preshing/junction
Distributed under the Simplified BSD License.
Original location: https://github.com/preshing/junction
@@
-36,6
+36,8
@@
private:
ConditionPair* initialize();
public:
ConditionPair* initialize();
public:
+ ~ConditionBank();
+
ConditionPair& get(void* ptr) {
ConditionPair* pairs = m_pairs.load(turf::Consume);
if (!pairs) {
ConditionPair& get(void* ptr) {
ConditionPair* pairs = m_pairs.load(turf::Consume);
if (!pairs) {