Home
last modified time | relevance | path

Searched refs:refCount (Results 1 – 25 of 82) sorted by relevance

1234

/third_party/node/test/parallel/
Dtest-net-persistent-ref-unref.js16 let refCount = 0; variable
20 refCount++;
21 assert.strictEqual(refCount, 0);
26 refCount--;
27 assert.strictEqual(refCount, -1);
38 assert.strictEqual(refCount, 0);
/third_party/libsnd/tests/
Dcpp_test.cc46 if (file.refCount () != 1) in ceeplusplus_wchar_test()
47 …\n\n%s %d : Error : Reference count (%d) should be 1.\n\n", __func__, __LINE__, file.refCount ()) ; in ceeplusplus_wchar_test()
73 if (file.refCount () != 0) in create_file()
74 …n%s %d : Error : Reference count (%d) should be zero.\n\n", __func__, __LINE__, file.refCount ()) ; in create_file()
80 if (file.refCount () != 1) in create_file()
81 …\n\n%s %d : Error : Reference count (%d) should be 1.\n\n", __func__, __LINE__, file.refCount ()) ; in create_file()
136 if (file.refCount () != 2 || file2.refCount () != 2) in read_file()
137 …\n%s %d : Error : Reference count (%d) should be two.\n\n", __func__, __LINE__, file.refCount ()) ; in read_file()
142 if (file.refCount () != 1) in read_file()
143 …\n%s %d : Error : Reference count (%d) should be one.\n\n", __func__, __LINE__, file.refCount ()) ; in read_file()
/third_party/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
DSharedObject.java171 c.refCount = new AtomicInteger(); in clone()
178 public final void addRef() { refCount.incrementAndGet(); } in addRef()
185 refCount.decrementAndGet(); in removeRef()
191 public final int getRefCount() { return refCount.get(); } in getRefCount()
197 private AtomicInteger refCount = new AtomicInteger(); field in SharedObject
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/coll/
DSharedObject.java174 c.refCount = new AtomicInteger(); in clone()
181 public final void addRef() { refCount.incrementAndGet(); } in addRef()
188 refCount.decrementAndGet(); in removeRef()
194 public final int getRefCount() { return refCount.get(); } in getRefCount()
200 private AtomicInteger refCount = new AtomicInteger(); field in SharedObject
/third_party/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/charsetdet/sbcs/
DNGramList.java32 private int refCount; field in NGramList.NGram
37 refCount = theRefCount; in NGram()
57 return refCount; in getRefCount()
62 refCount += 1; in incrementRefCount()
70 return ng.getRefCount() - refCount; in compareTo()
DStatisticsTool.java173 int refCount = ngram.getRefCount(); in dumpNGrams() local
174 double ratio = (double) refCount / totalNGrams * 100.0; in dumpNGrams()
183 output.println(value + "\t" + refCount + "\t" + ratio + "%\t" + cumulative + "%"); in dumpNGrams()
/third_party/typescript/src/compiler/
DresolutionCache.ts34 refCount?: number; property
72 refCount: number; property
300 if (watcher.refCount === 0) {
553 if (resolution.refCount) {
554 resolution.refCount++;
558 resolution.refCount = 1;
575 Debug.assert(!!resolution.refCount);
590 const refCount = customFailedLookupPaths.get(failedLookupLocationPath) || 0; constant
591 customFailedLookupPaths.set(failedLookupLocationPath, refCount + 1);
620 dirWatcher.refCount++;
[all …]
Dsys.ts371 refCount: number;
381 existing.refCount++;
394 refCount: 1
403 watcher.refCount--;
404 if (watcher.refCount) return;
483 refCount: number;
505 directoryWatcher.refCount++;
523 refCount: 1,
540 directoryWatcher.refCount--;
542 if (directoryWatcher.refCount) return;
/third_party/flutter/skia/third_party/externals/icu/source/common/
Dunifiedcache.cpp496 int refCount = 0; in removeHardRef() local
498 refCount = umtx_atomic_dec(&value->hardRefCount); in removeHardRef()
499 U_ASSERT(refCount >= 0); in removeHardRef()
500 if (refCount == 0) { in removeHardRef()
504 return refCount; in removeHardRef()
508 int refCount = 0; in addHardRef() local
510 refCount = umtx_atomic_inc(&value->hardRefCount); in addHardRef()
511 U_ASSERT(refCount >= 1); in addHardRef()
512 if (refCount == 1) { in addHardRef()
516 return refCount; in addHardRef()
Dusprep.cpp163 if ((noRefCount== FALSE && profile->refCount == 0) || in usprep_internal_flushCache()
331 profile->refCount++; in usprep_getProfile()
369 profile->refCount++; in usprep_getProfile()
383 profile->refCount = 1; in usprep_getProfile()
427 if(profile->refCount > 0){ in usprep_close()
428 profile->refCount--; in usprep_close()
/third_party/icu/icu4c/source/common/
Dunifiedcache.cpp499 int refCount = 0; in removeHardRef() local
501 refCount = umtx_atomic_dec(&value->hardRefCount); in removeHardRef()
502 U_ASSERT(refCount >= 0); in removeHardRef()
503 if (refCount == 0) { in removeHardRef()
507 return refCount; in removeHardRef()
511 int refCount = 0; in addHardRef() local
513 refCount = umtx_atomic_inc(&value->hardRefCount); in addHardRef()
514 U_ASSERT(refCount >= 1); in addHardRef()
515 if (refCount == 1) { in addHardRef()
519 return refCount; in addHardRef()
Dusprep.cpp162 if ((noRefCount== FALSE && profile->refCount == 0) || in usprep_internal_flushCache()
330 profile->refCount++; in usprep_getProfile()
368 profile->refCount++; in usprep_getProfile()
382 profile->refCount = 1; in usprep_getProfile()
426 if(profile->refCount > 0){ in usprep_close()
427 profile->refCount--; in usprep_close()
/third_party/node/deps/icu-small/source/common/
Dunifiedcache.cpp499 int refCount = 0; in removeHardRef() local
501 refCount = umtx_atomic_dec(&value->hardRefCount); in removeHardRef()
502 U_ASSERT(refCount >= 0); in removeHardRef()
503 if (refCount == 0) { in removeHardRef()
507 return refCount; in removeHardRef()
511 int refCount = 0; in addHardRef() local
513 refCount = umtx_atomic_inc(&value->hardRefCount); in addHardRef()
514 U_ASSERT(refCount >= 1); in addHardRef()
515 if (refCount == 1) { in addHardRef()
519 return refCount; in addHardRef()
Dusprep.cpp162 if ((noRefCount== FALSE && profile->refCount == 0) || in usprep_internal_flushCache()
330 profile->refCount++; in usprep_getProfile()
368 profile->refCount++; in usprep_getProfile()
382 profile->refCount = 1; in usprep_getProfile()
426 if(profile->refCount > 0){ in usprep_close()
427 profile->refCount--; in usprep_close()
/third_party/skia/third_party/externals/icu/source/common/
Dunifiedcache.cpp499 int refCount = 0; in removeHardRef() local
501 refCount = umtx_atomic_dec(&value->hardRefCount); in removeHardRef()
502 U_ASSERT(refCount >= 0); in removeHardRef()
503 if (refCount == 0) { in removeHardRef()
507 return refCount; in removeHardRef()
511 int refCount = 0; in addHardRef() local
513 refCount = umtx_atomic_inc(&value->hardRefCount); in addHardRef()
514 U_ASSERT(refCount >= 1); in addHardRef()
515 if (refCount == 1) { in addHardRef()
519 return refCount; in addHardRef()
Dusprep.cpp162 if ((noRefCount== FALSE && profile->refCount == 0) || in usprep_internal_flushCache()
330 profile->refCount++; in usprep_getProfile()
368 profile->refCount++; in usprep_getProfile()
382 profile->refCount = 1; in usprep_getProfile()
426 if(profile->refCount > 0){ in usprep_close()
427 profile->refCount--; in usprep_close()
/third_party/grpc/src/csharp/Grpc.Core/
DGrpcEnvironment.cs43 static int refCount; field in Grpc.Core.GrpcEnvironment
75 refCount++; in AddRef()
92 GrpcPreconditions.CheckState(refCount > 0); in ReleaseAsync()
93 refCount--; in ReleaseAsync()
94 if (refCount == 0) in ReleaseAsync()
111 return refCount; in GetRefCount()
/third_party/node/lib/internal/
Dtimers.js141 let refCount = 0; variable
298 if (refCount++ === 0)
303 if (--refCount === 0)
494 return refCount > 0 ? nextExpiry : -nextExpiry;
540 refCount--;
568 refCount--;
/third_party/icu/icu4c/source/i18n/
Dtznames.cpp51 int32_t refCount; member
92 if (entry->refCount <= 0 && (now - entry->lastAccess) > CACHE_EXPIRATION) { in sweepCache()
178 cacheEntry->refCount = 1; in TimeZoneNamesDelegate()
198 cacheEntry->refCount++; in TimeZoneNamesDelegate()
214 U_ASSERT(fTZnamesCacheEntry->refCount > 0); in ~TimeZoneNamesDelegate()
216 fTZnamesCacheEntry->refCount--; in ~TimeZoneNamesDelegate()
243 fTZnamesCacheEntry->refCount++; in clone()
/third_party/skia/third_party/externals/icu/source/i18n/
Dtznames.cpp51 int32_t refCount; member
92 if (entry->refCount <= 0 && (now - entry->lastAccess) > CACHE_EXPIRATION) { in sweepCache()
178 cacheEntry->refCount = 1; in TimeZoneNamesDelegate()
198 cacheEntry->refCount++; in TimeZoneNamesDelegate()
214 U_ASSERT(fTZnamesCacheEntry->refCount > 0); in ~TimeZoneNamesDelegate()
216 fTZnamesCacheEntry->refCount--; in ~TimeZoneNamesDelegate()
243 fTZnamesCacheEntry->refCount++; in clone()
/third_party/flutter/skia/third_party/externals/icu/source/i18n/
Dtznames.cpp51 int32_t refCount; member
92 if (entry->refCount <= 0 && (now - entry->lastAccess) > CACHE_EXPIRATION) { in sweepCache()
178 cacheEntry->refCount = 1; in TimeZoneNamesDelegate()
198 cacheEntry->refCount++; in TimeZoneNamesDelegate()
214 U_ASSERT(fTZnamesCacheEntry->refCount > 0); in ~TimeZoneNamesDelegate()
216 fTZnamesCacheEntry->refCount--; in ~TimeZoneNamesDelegate()
243 fTZnamesCacheEntry->refCount++; in clone()
/third_party/mindspore/mindspore/lite/tools/common/
Dtensor_util.cc235 newTensor->refCount = oldTensor->refCount; in CopyTensorDefT()
247 size_t refCount = 0; in GetRefCount() local
251 refCount++; in GetRefCount()
254 return refCount; in GetRefCount()
/third_party/node/deps/icu-small/source/i18n/
Dtznames.cpp51 int32_t refCount; member
92 if (entry->refCount <= 0 && (now - entry->lastAccess) > CACHE_EXPIRATION) { in sweepCache()
178 cacheEntry->refCount = 1; in TimeZoneNamesDelegate()
198 cacheEntry->refCount++; in TimeZoneNamesDelegate()
214 U_ASSERT(fTZnamesCacheEntry->refCount > 0); in ~TimeZoneNamesDelegate()
216 fTZnamesCacheEntry->refCount--; in ~TimeZoneNamesDelegate()
243 fTZnamesCacheEntry->refCount++; in clone()
/third_party/typescript/src/services/
DdocumentRegistry.ts127 const sourceFiles: { name: string; refCount: number; }[] = []; constant
131 refCount: entry.languageServiceRefCount
134 sourceFiles.sort((x, y) => y.refCount - x.refCount);
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/
DVkPipelineLayout.cpp136 return ++refCount; in incRefCount()
141 return --refCount; in decRefCount()

1234