c++ singleton
843829Mar 1 2010 — edited Mar 2 2010I have a web service that is utilizing JNI to access a c++ library that I am loading via the static constructor of my class.
Inside that library, there is a singleton class that I plan on accessing, but I'm unsure of its lifecycle.
Since this is a web service, would there be one copy of the singleton per web service instance, or is there is a single instance of the singleton for all instances of the web service?