AllenNeuralDynamics / AllenNeuralDynamics/python-newscale

Thread Safe Implementation for Exotic MultiStage Use-Cases

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
enhancement
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.