Inheritance: IDisposable
Beispiel #1
0
 public CacheInfo(FileCacheStore statCache)
 {
     cache = statCache;
     Logging.Emit("creating cache info mutex");
     statMtx = new Mutex(false, "cclash_stat_" + cache.FolderPath.ToLower().GetHashCode());
     Logging.Emit("created cache info mutex");
 }
Beispiel #2
0
 public HashUtil(FileCacheStore includecache)
 {
     if (includecache == null)
     {
         throw new ArgumentNullException("includecache");
     }
     includeCache = includecache;
 }
Beispiel #3
0
 public CompilerCacheBase(string cacheFolder) : this()
 {
     Logging.Emit("setting up file stores");
     if (string.IsNullOrEmpty(cacheFolder)) throw new ArgumentNullException("cacheFolder");            
     outputCache = FileCacheStore.Load(Path.Combine(cacheFolder, "outputs"));
     includeCache = FileCacheStore.Load(Path.Combine(cacheFolder, "includes"));
     Logging.Emit("setup cache info");
     stats = new CacheInfo(outputCache);
     Logging.Emit("setup hasher");
     hasher = new HashUtil(includeCache);
 }
Beispiel #4
0
 public CompilerCacheBase(string cacheFolder) : this()
 {
     Logging.Emit("setting up file stores");
     if (string.IsNullOrEmpty(cacheFolder))
     {
         throw new ArgumentNullException("cacheFolder");
     }
     outputCache  = FileCacheStore.Load(Path.Combine(cacheFolder, "outputs"));
     includeCache = FileCacheStore.Load(Path.Combine(cacheFolder, "includes"));
     Logging.Emit("setup cache info");
     stats = new CacheInfo(outputCache);
     Logging.Emit("setup hasher");
     hasher = new HashUtil(includeCache);
 }
Beispiel #5
0
 public HashUtil(FileCacheStore includecache) {
     if (includecache == null) throw new ArgumentNullException("includecache");
     includeCache = includecache;
 }
Beispiel #6
0
 public FastCacheInfo(FileCacheStore stats)
 {
     statstore = stats;
 }
Beispiel #7
0
 public FastCacheInfo(FileCacheStore stats)
 {
     statstore = stats;
 }
Beispiel #8
0
 public CacheInfo(FileCacheStore statCache)
 {
     cache = statCache;
     Logging.Emit("creating cache info mutex");
     statMtx = new Mutex(false, "cclash_stat_" + cache.FolderPath.ToLower().GetHashCode());
     Logging.Emit("created cache info mutex");
 }