plibsys icon indicating copy to clipboard operation
plibsys copied to clipboard

Check state of plibsys library initalization

Open ghost opened this issue 4 years ago • 1 comments

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 avatar Dec 28 '20 23:12 ghost

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

saprykin avatar Aug 10 '23 08:08 saprykin