Use different singleton pattern to support inheritance
The previous singleton pattern doesn't work when a class is inherited from the GeoIP class and causes creation of a new GeoIP object every time GeoIP is accessed. In addition add locks to protect from multiple instance creation from different threads.
Showing
Please
register
or
sign in
to comment