You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Semaphores are being ignored since they are local to the current scoped service instance. Each time a different dependency injection is done, a new semaphore is created.
To Reproduce
Set the safezone status off and on several times while debugging. Updating the robot state is not truly being protected by a mutex.
Expected behavior
A semaphore should block any thread from accessing the protected code region. This can be done by storing them in hosted services which only have one instance at a time (as long as flotilla only uses one server at a time).
Screenshots
The text was updated successfully, but these errors were encountered:
Describe the bug
Semaphores are being ignored since they are local to the current scoped service instance. Each time a different dependency injection is done, a new semaphore is created.
To Reproduce
Set the safezone status off and on several times while debugging. Updating the robot state is not truly being protected by a mutex.
Expected behavior
A semaphore should block any thread from accessing the protected code region. This can be done by storing them in hosted services which only have one instance at a time (as long as flotilla only uses one server at a time).
Screenshots
The text was updated successfully, but these errors were encountered: