Skip to content

Conversation

@felixdivo
Copy link
Collaborator

This PR adds a thread safe wrapper around existing interfaces. Calls to send() and recv() are locked independently.

# thisfromcanimportBusbus=Bus(bustype='some_interface', channel='0') # becomes thisfromcanimportThreadSafeBusbus=ThreadSafeBus(bustype='some_interface', channel='0')

In that case, the locking of send_periodic() is disabled since it is redundant.

Testing and docs are still left to be done.

@felixdivo
Copy link
CollaboratorAuthor

Okay, it does not work like that. Any help is appreciated.

@felixdivo
Copy link
CollaboratorAuthor

I will wait a while with this until #277 gets finalized & merged.

@felixdivofelixdivo deleted the feature-synchronized-bus branch May 28, 2018 11:42
@felixdivofelixdivo restored the feature-synchronized-bus branch May 28, 2018 11:42
@felixdivofelixdivo deleted the feature-synchronized-bus branch May 28, 2018 11:49
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@felixdivo