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

Add functions that take struct vxi11_client_t as a parameter #3

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

levens
Copy link

@levens levens commented Sep 1, 2016

This PR adds functions that, instead of using the global VXI11_CLIENTS, accept the struct as a parameter. This came from the need for the use of the library in a multi-threaded application where each thread manages its own data.

levens added 6 commits June 4, 2015 14:04
VXI11_CLIENTS is no longer a global variable but is instead passed to
the open/close functions. In a multithreaded application the global
variable causes problems. Instead it is up to the calling code to
protect this variable.
Conflicts:
	library/vxi11_user.c
	library/vxi11_user.h
vxi11_open_device() and vxi11_close_device() no longer have an argument
for the clients, these functions again use a global variable. Two new
functions are added, vxi11_open_device_clients() and
vxi11_close_device_clients() to offer the option to pass an external
clients list.
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.

1 participant