Skip to content

Commit

Permalink
Merge branch 'lazy_skip_list_dev' into lazy_skip_list_integration
Browse files Browse the repository at this point in the history
  • Loading branch information
Rextuz committed Jan 28, 2018
2 parents 14b8e4e + ca80b94 commit 570616f
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions cds/container/lazy_skip_list_set.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
#ifndef CDSLIB_CONTAINER_SKIP_LIST_SET_DHP_H
#define CDSLIB_CONTAINER_SKIP_LIST_SET_DHP_H
#ifndef CDSLIB_CONTAINER_SKIP_LIST_SET_H
#define CDSLIB_CONTAINER_SKIP_LIST_SET_H

#include <mutex>

#include <cds/container/details/lazy_skip_list_set_base.h>
#include <cds/gc/nogc.h>

namespace cds { namespace container {

Expand All @@ -29,8 +28,6 @@ namespace cds { namespace container {
typedef cds::container::lazy_skip_list_set::node<gc, value_type> node_type;
typedef typename node_type::key_type key_type;

typedef cds::details::marked_ptr<node_type, 1> marked_ptr;

node_type *m_Head;
node_type *m_Tail;

Expand All @@ -52,8 +49,6 @@ namespace cds { namespace container {
unsigned int topLayer = randomLevel();
node_type * preds[c_nMaxHeight];
node_type * succs[c_nMaxHeight];
//auto **preds = new node_type *[c_nMaxHeight];
//auto **succs = new node_type *[c_nMaxHeight];

while (true) {
int lFound = find(key, preds, succs);
Expand Down Expand Up @@ -112,8 +107,6 @@ namespace cds { namespace container {
unsigned int topLayer = 0;
node_type *preds[c_nMaxHeight];
node_type *succs[c_nMaxHeight];
/*auto **preds = new node_type *[c_nMaxHeight];
auto **succs = new node_type *[c_nMaxHeight];*/

while (true) {
int lFound = find(key, preds, succs);
Expand Down Expand Up @@ -249,4 +242,4 @@ namespace cds { namespace container {

}} // namespace cds::container

#endif // #ifndef CDSLIB_CONTAINER_SKIP_LIST_SET_DHP_H
#endif // #ifndef CDSLIB_CONTAINER_SKIP_LIST_SET_H

0 comments on commit 570616f

Please sign in to comment.