BloombergLP::baltzo::DefaultZoneinfoCache::setDefaultCache

Set the address of the default ZoneinfoCache object to the specified cache. Return the address of the default cache object that was set by a previous call to this method, or 0 if no call to this method was previously executed. The behavior is undefined unless (1) cache remains valid until the last operation is performed on this process's default cache, or a subsequent call to setDefaultCache, and (2) this method is not called from one thread while another thread is attempting to access the default time zone cache instance (i.e., this method is not thread-safe). Note that this method is intended for use only by the owner of main (and for testing purposes) where the caller affirmatively takes responsibility for the behavior of all clients of the default time zone cache.

Synopsis

Declared in <baltzo_defaultzoneinfocache.h>

static
ZoneinfoCache*
setDefaultCache(ZoneinfoCache* cache);