AllenNeuralDynamics / AllenNeuralDynamics/python-newscale
Thread Safe Implementation for Exotic MultiStage Use-Cases
- Dominant language
- Python
- Stars
- 1
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
**Is your feature request related to a problem? Please describe.**
The current implementation is not thread safe for shared interface across multiple objects. This is unlikely to pose a problem since most real-world implementations are one-python-object-per-interface.
**Describe the solution you'd like**
Consolidate send/read command into a single method at the interface level. Create a ThreadSafeInterface child class of the interface class that wraps this function in a mutex lock. Or, better: do this at the module level so that you can do:
````python
from newscale.thread_safe_interfaces import M3USBInterface
````
Contributor guide
Assessment
This issue has not been assessed yet.