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

Make nexus::system_orchestrator::Context thread safe #65

Open
Yadunund opened this issue Jan 24, 2025 · 0 comments
Open

Make nexus::system_orchestrator::Context thread safe #65

Yadunund opened this issue Jan 24, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@Yadunund
Copy link
Member

We often pass the Context to BT nodes but the operations are not thread safe when we run multiple jobs in parallel. We could update workcell_task_assignments in the system orchestrator callbacks while BT nodes might be iterating over the same.

We should move all data members to private scope and add get/setters that lock a mutex before accessing these data members.

@Yadunund Yadunund added the enhancement New feature or request label Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant