Ignore:
Timestamp:
Jun 5, 2020, 6:17:17 PM (5 years ago)
Author:
bird
Message:

kmk,kFsCache: Added variant of kFsCacheInvalidateAll that also closes directory handles, we need to do this befor ere-executing kmk after having remake some include file we needed. It messes up fetching otherwise.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/dir-nt-bird.c

    r3203 r3359  
    660660
    661661/**
     662 * Invalidate the whole directory cache and closes all open handles.
     663 *
     664 * Used by $(dircache-ctl invalidate-and-close-dirs)
     665 * @param   including_root      Also close the root directory.
     666 * @note    Multi-thread safe.
     667 */
     668void dir_cache_invalid_all_and_close_dirs(int including_root)
     669{
     670    g_cInvalidates++;
     671    kFsCacheInvalidateAllAndCloseDirs(g_pFsCache, !!including_root);
     672}
     673
     674/**
    662675 * Invalidate missing bits of the directory cache.
    663676 *
Note: See TracChangeset for help on using the changeset viewer.