-
Notifications
You must be signed in to change notification settings - Fork 26
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not use "counter*2" as delta values for Add
and Done
? And keep "1" as wait indicator. That will give us always accurate Count
.
We don't need "accurate" count. |
Co-authored-by: Andrei Lobov <andrei.lobov@arangodb.com>
Why we need method that intentionally lies? |
it's not lies |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* Separate WaitGroup * Update core/utils/wait_group.hpp Co-authored-by: Andrei Lobov <andrei.lobov@arangodb.com> * Exact count * fix lints --------- Co-authored-by: Andrei Lobov <andrei.lobov@arangodb.com>
* Feature/use nonpriority pool (#570) * new thread pool * fix * wip * add static * attempt to fix compile warning (#569) the compile option `-fsized-deallocation` should only be used for C++ code, but not for C code. otherwise clang warns with the following message: ``` warning: command-line option ‘-fsized-deallocation’ is valid for C++/ObjC++ but not for C ``` * Improve thread pool (#571) * WIP * WIP * WIP * WIP * Update core/utils/async_utils.cpp * Separate WaitGroup (#572) * Separate WaitGroup * Update core/utils/wait_group.hpp Co-authored-by: Andrei Lobov <andrei.lobov@arangodb.com> * Exact count * fix lints --------- Co-authored-by: Andrei Lobov <andrei.lobov@arangodb.com> * Backport and start * fix * fix datarace * fix build --------- Co-authored-by: Jan <jsteemann@users.noreply.github.com> Co-authored-by: Valery Mironov <32071355+MBkkt@users.noreply.github.com>
No description provided.