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

Check state of plibsys library initalization #93

Open
ghost opened this issue Dec 28, 2020 · 1 comment
Open

Check state of plibsys library initalization #93

ghost opened this issue Dec 28, 2020 · 1 comment

Comments

@ghost
Copy link

ghost commented Dec 28, 2020

While might be a weird way to use plibsys, i seem to have a library that uses plibsys, along with the actual executable using the library... so in a weird way is there some way to check if plibsys has been shutdown/initialized already, and account our program around that... seeing the code, it doesnt seem entirely impossible to say the current state of the library. doing this will allow my to shutdown my external library using plibsys, check if it shut it down (which it most likely has) and initializing it if i still have a need for plibsys still, but no need for my external library which also uses plibsys

@ghost ghost changed the title Library issues? Check state of plibsys library initalization Dec 28, 2020
@saprykin
Copy link
Owner

It is safe to call init/shutdown multiple times, as the library checks internally the state. Wouldn't it work this way?

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

No branches or pull requests

1 participant