Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Remove the safety mutex in Reception in Thread Pool #292

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jparisu
Copy link
Contributor

@jparisu jparisu commented Sep 7, 2022

Signed-off-by: jparisu [email protected]

@jparisu jparisu temporarily deployed to codecov September 7, 2022 08:06 Inactive
@jparisu jparisu temporarily deployed to codecov September 7, 2022 08:06 Inactive
@codecov
Copy link

codecov bot commented Sep 7, 2022

Codecov Report

Base: 58.45% // Head: 58.60% // Increases project coverage by +0.14% 🎉

Coverage data is based on head (f129ec4) compared to base (e1447b3).
Patch coverage: 22.22% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #292      +/-   ##
==========================================
+ Coverage   58.45%   58.60%   +0.14%     
==========================================
  Files          99       99              
  Lines        3428     3423       -5     
  Branches     1277     1272       -5     
==========================================
+ Hits         2004     2006       +2     
+ Misses        649      647       -2     
+ Partials      775      770       -5     
Impacted Files Coverage Δ
..._utils/src/cpp/thread_pool/pool/SlotThreadPool.cpp 54.76% <22.22%> (+5.82%) ⬆️
ddsrouter_core/src/cpp/communication/Track.cpp 63.76% <0.00%> (+2.89%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Task& task = it->second;

logDebug(DDSROUTER_THREAD_POOL, "Thread: " << std::this_thread::get_id() << " executing callback.");
task();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would say that the time taken for copying a function (in our case, only with functions whose args are not copied) is not so relevant. However, it might be problematic to have the discovery thread stuck for not being able to slot a new task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants