[ https://issues.apache.org/jira/browse/GEODE-2494?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15886962#comment-15886962 ]
ASF GitHub Bot commented on GEODE-2494: --------------------------------------- Github user pivotal-jbarrett commented on a diff in the pull request: https://github.com/apache/geode-native/pull/36#discussion_r103353360 --- Diff: src/cppcache/src/LRUList.cpp --- @@ -96,33 +102,38 @@ void LRUList<TEntry, TCreateEntry>::getLRUEntry(LRUListEntryPtr& result) { template <typename TEntry, typename TCreateEntry> typename LRUList<TEntry, TCreateEntry>::LRUListNode* -LRUList<TEntry, TCreateEntry>::getHeadNode(bool& isLast) { - LOCK_HEAD; +LRUList<TEntry, TCreateEntry>::getHeadNode(bool* isLast) { --- End diff -- Good questions... Adherence to Google C++ Style Guide on references vs. pointers. I think I did this before writing my questions about the practice on the dev@geode. I can back this change out. For reference, the guide dictates that references must be const and should be used for in variables only. For out variable you should use pointer. > 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)