Tabnine Logo
CndFileUtils$L1Cache
Code IndexAdd Tabnine to your IDE (free)

How to use
CndFileUtils$L1Cache
in
org.netbeans.modules.cnd.utils.cache

Best Java code snippets using org.netbeans.modules.cnd.utils.cache.CndFileUtils$L1Cache (Showing top 1 results out of 315)

origin: org.netbeans.modules/org-netbeans-modules-cnd-utils

private static ConcurrentMap<String, Flags> getFilesMap(FileSystem fs) {
  ConcurrentMap<String, Flags> map;
  if (CndTraceFlags.L1_CACHE_FILE_UTILS) {
    L1Cache aCache = l1Cache;
    if (aCache != null) {
      map = aCache.get(fs);
      if (map != null) {
        return map;
      }
    }
  }
  try {
    maRefLock.lock();
    Reference<ConcurrentMap<String, Flags>> mapRef = maps.get(fs);
    if (mapRef == null || (map = mapRef.get()) == null) {
      map = new ConcurrentHashMap<String, Flags>();
      mapRef = new SoftReference<ConcurrentMap<String, Flags>>(map);
      maps.put(fs, mapRef);
      if (CndTraceFlags.L1_CACHE_FILE_UTILS) {
        l1Cache = new L1Cache(fs, mapRef);
      }
    }
  } finally {
    maRefLock.unlock();
  }
  return map;
}
org.netbeans.modules.cnd.utils.cacheCndFileUtils$L1Cache

Most used methods

  • <init>

Popular in Java

  • Reading from database using SQL prepared statement
  • runOnUiThread (Activity)
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Socket (java.net)
    Provides a client-side TCP socket.
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now