-
Notifications
You must be signed in to change notification settings - Fork 318
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iiod-client: move context lock inside the iiod_client object
All the iiod-client (type) backends create a context lock and pass it to the iio_client object via iiod_client_new(). This looks wonky, since the iio_client routines do a lot of things with that lock. The serial backend uses it quite extensively. The USB doesn't (explicitly lock it at all), and the network backend only uses it during network_close() (which may be un-required). For the cases where this lock is still used, a iiod_client_mutex_{un}lock() function pair is created to access the lock. We may find that we can hide the lock entirely, but until then this change shouldn't change any current behavior. Signed-off-by: Alexandru Ardelean <[email protected]>
- Loading branch information
Showing
5 changed files
with
47 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters