svn_fs_initialize

Function svn_fs_initialize 

Source
pub unsafe extern "C" fn svn_fs_initialize(
    pool: *mut apr_pool_t,
) -> *mut svn_error_t
Expand description

Callers should invoke this function to initialize global state in the FS library before creating FS objects. If this function is invoked, no FS objects may be created in another thread at the same time as this invocation, and the provided @a pool must last longer than any FS object created subsequently.

If this function is not called, the FS library will make a best effort to bootstrap a mutex for protecting data common to FS objects; however, there is a small window of failure. Also, a small amount of data will be leaked if the Subversion FS library is dynamically unloaded, and using the bdb FS can potentially segfault or invoke other undefined behavior if this function is not called with an appropriate pool (such as the pool the module was loaded into) when loaded dynamically.

If this function is called multiple times before the pool passed to the first call is destroyed or cleared, the later calls will have no effect.

@since New in 1.2.