Logo Search packages:      
Sourcecode: icu version File versions  Download package

void CollData::flushCollDataCache (  ) [static]

CollData objects are expensive to compute, and so may be cached. This routine will remove any unused CollData objects from the cache.

4.0.1 technology preview

Definition at line 1087 of file colldata.cpp.

References NULL.

Referenced by ucd_flushCache().

{
    CollDataCache *cache = NULL;

    UMTX_CHECK(NULL, collDataCache, cache);

    // **** this will fail if the another ****
    // **** thread deletes the cache here ****
    if (cache != NULL) {
        cache->flush();
    }
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index