Skip to content

Conversation

@SiMet
Copy link
Contributor

@SiMet SiMet commented Nov 3, 2025

  • Three unit tests created
  • Created new method runJobOnExecutorAndWait in ControllerImpl to run job on executor and wait for compleation using marker job
  • replace flush in deregisterVirtualControlledEntity and refreshEntity with runJobOnExecutorAndWait

@SiMet SiMet force-pushed the fix/unload-virtual-devices-deadlock branch from c27d1c7 to d3cbd31 Compare November 3, 2025 10:39
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same


}

TEST(ControllerEntity, PushJobToExecutorWhileUnloadVirtualEntities)
Copy link
Collaborator

Choose a reason for hiding this comment

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

same comments

@SiMet SiMet force-pushed the fix/unload-virtual-devices-deadlock branch from d3cbd31 to c7214c4 Compare November 3, 2025 13:06

private:
la::avdecc::ExecutorManager::ExecutorWrapper* _executor;
la::avdecc::ExecutorManager::ExecutorWrapper* _executor = nullptr;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Always use brace initialization (see CODING_STYLE_GUIDELINES)

public:
JobPusherObserver(la::avdecc::ExecutorManager::ExecutorWrapper* executor)
: _executor(executor)
: la::avdecc::controller::Controller::DefaultedObserver()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not needed

JobPusherObserver(la::avdecc::ExecutorManager::ExecutorWrapper* executor)
: _executor(executor)
: la::avdecc::controller::Controller::DefaultedObserver()
, _executor(executor)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Use brace initialization

@SiMet SiMet force-pushed the fix/unload-virtual-devices-deadlock branch 2 times, most recently from fd8ee12 to c089aaa Compare November 4, 2025 07:56
public:
JobPusherObserver(la::avdecc::ExecutorManager::ExecutorWrapper* executor)
: _executor(executor)
: _executor({ executor })
Copy link
Collaborator

Choose a reason for hiding this comment

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

I meant "only" brace initialization, like for class members :)

[this]()
[]()
{

Copy link
Collaborator

Choose a reason for hiding this comment

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

This new line just appeared. Good thing anyway, please add a very small comment:
// Empty, just to force a job in the queue

And do the same for the other empty job. Thanks

@SiMet SiMet force-pushed the fix/unload-virtual-devices-deadlock branch from c089aaa to ce305d7 Compare November 4, 2025 09:04
@SiMet SiMet force-pushed the fix/unload-virtual-devices-deadlock branch from ce305d7 to 6227e9c Compare November 4, 2025 09:11
@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 4, 2025

@christophe-calmejane christophe-calmejane merged commit 034dd9c into L-Acoustics:dev Nov 4, 2025
5 of 7 checks passed
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