Skip to content

Add functions that take struct vxi11_client_t as a parameter#3

Open
levens wants to merge 6 commits intoapplied-optics:masterfrom
levens:master
Open

Add functions that take struct vxi11_client_t as a parameter#3
levens wants to merge 6 commits intoapplied-optics:masterfrom
levens:master

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