[ https://issues.apache.org/jira/browse/GEODE-2494?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15886163#comment-15886163 ]
ASF GitHub Bot commented on GEODE-2494: --------------------------------------- Github user dgkimura commented on a diff in the pull request: https://github.com/apache/geode-native/pull/36#discussion_r103258922 --- Diff: src/cppcache/src/MapSegment.cpp --- @@ -19,18 +19,22 @@ #include "TrackedMapEntry.hpp" #include "RegionInternal.hpp" #include "TableOfPrimes.hpp" -#include "SpinLock.hpp" #include "Utils.hpp" #include "ThinClientPoolDM.hpp" #include "ThinClientRegion.hpp" #include "TombstoneExpiryHandler.hpp" #include <ace/OS.h> #include "ace/Time_Value.h" -using namespace apache::geode::client; -#define _GF_GUARD_SEGMENT SpinLockGuard mapGuard(m_spinlock) --- End diff -- Yay, one less macro! > Replace SpinLock class with C++11 style BasicLockable class, spinlock_mutex. > ---------------------------------------------------------------------------- > > Key: GEODE-2494 > URL: https://issues.apache.org/jira/browse/GEODE-2494 > Project: Geode > Issue Type: Sub-task > Components: native client > Reporter: Jacob S. Barrett > Assignee: Jacob S. Barrett > > Replace {{SpinLock}} class with C++11 style > {{[BasicLockable|http://en.cppreference.com/w/cpp/concept/BasicLockable]}} > class, {{spinlock_mutex}}. You can find several public domain examples of how > to implement a {{spinlock_mutex}} that can be used with > {{[std::lock_guard|http://en.cppreference.com/w/cpp/thread/lock_guard]}}. -- This message was sent by Atlassian JIRA (v6.3.15#6346)