mucbuc / circuit (public) (License: GPLv3) (since 2020-06-28) (hash sha1)
Synchronize container operations for single objects
List of commits:
Subject Hash Author Date (UTC)
fixed swap e79678e9a0f6c401bf6c75c073b4afb1d9c99239 mucbuc 2020-01-16 12:33:51
add unlock ed0dd962bd7e1468faa3f74a6d61c6ba94b8db13 mucbuc 2020-01-12 16:43:19
documentaoion 731b8bf31861113f070ee9e3613fdfbaef1e70a6 mucbuc 2020-01-12 15:46:29
index.h 74aafab338206a3d3c02b7448852dbde831692dc mucbuc 2020-01-12 04:42:02
factory returns shared_ptr 0d8ff1b381e3c7e275ebd99705853f54b100cdf9 mucbuc 2020-01-12 04:05:15
init 01daaea5899ac77acb8ec0c15583573d78eb9f31 mucbuc 2020-01-12 03:10:36
Commit e79678e9a0f6c401bf6c75c073b4afb1d9c99239 - fixed swap
Author: mucbuc
Author date (UTC): 2020-01-16 12:33
Committer name: mucbuc
Committer date (UTC): 2020-01-16 12:33
Parent(s): ed0dd962bd7e1468faa3f74a6d61c6ba94b8db13
Signer:
Signing key:
Signing status: N
Tree: 7f84b5f0e610decd43ea00c1aed4b491242a887c
File Lines added Lines deleted
src/impl/queue.h 1 1
test/src/main.cpp 4 0
File src/impl/queue.h changed (mode: 100644) (index d06dac5..d9908fe)
... ... namespace twice_size {
22 22 { {
23 23 ASSERT(lhs.is_locked()); ASSERT(lhs.is_locked());
24 24 ASSERT(rhs.is_locked()); ASSERT(rhs.is_locked());
25 lhs.m_queue.swap(rhs);
25 lhs.m_queue.swap(rhs.m_queue);
26 26 } }
27 27
28 28 template <class U> template <class U>
File test/src/main.cpp changed (mode: 100644) (index 78bd44c..e3c6a87)
... ... int main()
25 25 test_wait_pop(std::make_shared<CircuitStack<int>>()); test_wait_pop(std::make_shared<CircuitStack<int>>());
26 26 test_wait_pop(std::make_shared<CircuitQueue<int>>()); test_wait_pop(std::make_shared<CircuitQueue<int>>());
27 27
28
29 CircuitQueue<int> a, b;
30 a.swap(b);
31
28 32 return 0; return 0;
29 33 } }
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/mucbuc/circuit

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/mucbuc/circuit

Clone this repository using git:
git clone git://git.rocketgit.com/user/mucbuc/circuit

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main