Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Improve distributed_work_factory item management #2736

Conversation

guilhermelawless
Copy link
Contributor

@guilhermelawless guilhermelawless commented Apr 26, 2020

  • Using an unordered_multimap container rather than unordered_map of vectors to simplify methods.

My goal was initially to have each distributed work item self-erase itself from the factory's container on destruction, but some interactions with local work generation cause potential deadlocks.

@guilhermelawless guilhermelawless added the quality improvements This item indicates the need for or supplies changes that improve maintainability label Apr 26, 2020
@guilhermelawless guilhermelawless added this to the V22.0 milestone Apr 26, 2020
@guilhermelawless guilhermelawless self-assigned this Apr 26, 2020
@guilhermelawless guilhermelawless marked this pull request as draft April 26, 2020 13:25
@guilhermelawless guilhermelawless marked this pull request as ready for review April 27, 2020 07:43
@guilhermelawless guilhermelawless force-pushed the distributed-work/simplify-container branch from 3a5e7ca to 3feb024 Compare June 16, 2020 10:33
@guilhermelawless guilhermelawless changed the title Improve distributed_work_factory Improve distributed_work_factory item management Jun 16, 2020
@guilhermelawless guilhermelawless force-pushed the distributed-work/simplify-container branch 2 times, most recently from 4264d7b to 8e9a8d3 Compare June 16, 2020 12:11
- Using an unordered_multimap container of unordered_map of vectors to simplify methods.
- Use ASSERT_TIMELY in tests
@guilhermelawless guilhermelawless force-pushed the distributed-work/simplify-container branch from d5ac363 to d0fd52a Compare June 19, 2020 12:59
@guilhermelawless guilhermelawless merged commit 1a1979f into nanocurrency:develop Jun 19, 2020
@guilhermelawless guilhermelawless deleted the distributed-work/simplify-container branch June 19, 2020 18:41
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
quality improvements This item indicates the need for or supplies changes that improve maintainability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants