[
https://issues.apache.org/jira/browse/GEODE-2494?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15884057#comment-15884057
]
ASF GitHub Bot commented on GEODE-2494:
---------------------------------------
GitHub user pivotal-jbarrett opened a pull request:
https://github.com/apache/geode-native/pull/36
GEODE-2494: Replace SpinLock with spinlock_mutex.
Replaces our non-standard SpinLock with spinlock_mutex that implements the
C++11 standard BasicLockable. Where applicable the spin lock was completely
removed and replaced with other thread safe constructs. Singleton protection,
until singletons are removed entirely, converted to C++11 thread synchronized
static initialization. Atomic operations converted to std::atomic.
Can I get some reviews form the other C++ contributors before I merge this
lovely change?
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/pivotal-jbarrett/geode-native
feature/GEODE-2494
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/geode-native/pull/36.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #36
----
commit 4f8ee0ba64bae9cbc3fd204e759745236d174d6e
Author: Jacob Barrett <[email protected]>
Date: 2017-02-16T06:29:09Z
GEODE-2494: Adds spinlock_mutex.
commit 74efeb5d4ff807720aa051be5765471c64f3d8ea
Author: Jacob Barrett <[email protected]>
Date: 2017-02-16T06:29:37Z
GEODE-2494: Replace SpinLock with spinlock_mutex.
- Cleanup C++11 standards.
commit f2ec96e50c974f0f8999b0d7b0ae3e0b2ea64244
Author: Jacob Barrett <[email protected]>
Date: 2017-02-16T07:33:21Z
GEODE-2494: Replaced spin lock protected counter with std::atomic.
- Cleanup C++11 standards.
commit ab13aca81d084570d47c090363b5ba92b9ebec3b
Author: Jacob Barrett <[email protected]>
Date: 2017-02-20T21:42:19Z
GEODE-2494: Replace SpinLock with spinlock_mutex.
commit 84e5b333d7f53000593d41dcfe7f4011ea823f9f
Author: Jacob Barrett <[email protected]>
Date: 2017-02-22T05:46:27Z
GEODE-2494: Replace SpinLock with spinlock_mutex.
- Cleanup C++ standards.
commit 76ca82febc1d68bd1e09b7639c92d59745d626f9
Author: Jacob Barrett <[email protected]>
Date: 2017-02-22T05:55:33Z
GEODE-2494: Replace SpinLock with spinlock_mutex.
- Cleanup C++ standards.
commit 46131bea0d787698c124b822d8348b683633c6a2
Author: Jacob Barrett <[email protected]>
Date: 2017-02-22T06:00:21Z
GEODE-2494: Replace SpinLock with spinlock_mutex.
- Cleanup C++ standards.
commit 9c8a9d6644a566f2b2d927da6c69a73ece9f5105
Author: Jacob Barrett <[email protected]>
Date: 2017-02-22T06:14:50Z
GEODE-2494: Replace SpinLock with spinlock_mutex.
- Cleanup C++ standards.
commit ed88029b45b4b4d5155a76e0b0d0c2c882274581
Author: Jacob Barrett <[email protected]>
Date: 2017-02-22T06:52:50Z
GEODE-2494: Replace SpinLock with spinlock_mutex.
- Cleanup C++ standards.
commit 2e2c36b52b48342e59e7f0dac671c59dfb994148
Author: Jacob Barrett <[email protected]>
Date: 2017-02-23T01:58:05Z
GEODE-2494: Replace SpinLock with spinlock_mutex.
- Cleanup C++ standards.
commit 8898a1c9b3dc514bd6b8c2630d021a01729d4df8
Author: Jacob Barrett <[email protected]>
Date: 2017-02-23T03:04:10Z
GEODE-2494: Replace SpinLock with spinlock_mutex.
- Cleanup C++ standards.
commit ec2e69431c88d00a63b05b3f6fdcec8b970fe780
Author: Jacob Barrett <[email protected]>
Date: 2017-02-23T05:29:49Z
GEODE-2494: Removed SpinLock.
----
> 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)