diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-11-16 16:27:47 +0000 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-11-16 16:27:47 +0000 |
commit | 82a3db85138c91df397fd820a3b5d1a0b5c21ef9 (patch) | |
tree | 6c6435962594df18eb2b6ed1d07740aecd0778ff /tests/syncqueuetest.cpp | |
parent | 443ae47fc210bcfe10f6f6c5ac8aa3453e1d29d2 (diff) | |
download | YAGE-82a3db85138c91df397fd820a3b5d1a0b5c21ef9.tar.gz YAGE-82a3db85138c91df397fd820a3b5d1a0b5c21ef9.zip |
Asynchronous logging added
Diffstat (limited to 'tests/syncqueuetest.cpp')
-rw-r--r-- | tests/syncqueuetest.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/syncqueuetest.cpp b/tests/syncqueuetest.cpp index cb9a920e..07167dc6 100644 --- a/tests/syncqueuetest.cpp +++ b/tests/syncqueuetest.cpp @@ -6,7 +6,7 @@ using namespace yage; SyncQueue<int> queue; -std::atomic_int j; +std::atomic_int j(0); void push_to_queue1(int elements) { @@ -28,7 +28,6 @@ void push_to_queue2(int elements) int main() { - j.store(0); std::thread first(push_to_queue1, 100000); std::thread second(push_to_queue2, 100000); |