Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConnectionProvider: Create a Connection object which includes the iio_context and the CommandQueue. #1500

Merged
merged 3 commits into from
Nov 15, 2023

Conversation

AlexandraTrifan
Copy link
Contributor

  • Change the behavior of the CommandQueue.
  • Introduce the Connection object which handles the iio_context and CommandQueue creation and destruction.
  • Handle the reference count inside the Connection object.
  • Emit a signal when the Connection reference count is 0 and the object is about to be destroyed. Every client of the ConnectionProvider should make sure that this signal is handled and no further operations regarding iio_context or CommandQueue are performed.
  • Add a closeAll() method to force the destruction of the Connection and signal all the other clients to deinitialize.

@AlexandraTrifan AlexandraTrifan force-pushed the connection-obj-provider branch 3 times, most recently from 0d6c3ca to f6c22b1 Compare October 27, 2023 12:15
The open() and close() calls are done through a singleton
ConnectionProvider while the reference count is handled inside the
Connection object.

This should replace the existing ContextProvider.

Signed-off-by: AlexandraTrifan <[email protected]>
@AlexandraTrifan AlexandraTrifan marked this pull request as ready for review October 31, 2023 11:59
@AlexandraTrifan AlexandraTrifan merged commit 21b681b into dev Nov 15, 2023
18 checks passed
@AlexandraTrifan AlexandraTrifan deleted the connection-obj-provider branch November 15, 2023 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants