9 writes to RefCount
System.Diagnostics.PerformanceCounter (9)
System\Diagnostics\SharedPerformanceCounter.cs (9)
290newInstanceEntryPointer->RefCount = 1; 396newInstanceEntryPointer->RefCount = 1; 1067currentInstancePointer->RefCount = 1; 1173(*returnInstancePointerReference)->RefCount = 1; 1296currentInstancePointer->RefCount = 0; 1311currentInstancePointer->RefCount = 0; 1326currentInstancePointer->RefCount = 0; 1344currentInstancePointer->RefCount = 0; 1514instancePointer->RefCount = 0;
6 references to RefCount
System.Diagnostics.PerformanceCounter (6)
System\Diagnostics\SharedPerformanceCounter.cs (6)
1007if (verifyLifeTime && (currentInstancePointer->RefCount != 0)) 1028if (!verifiedLifetimeOfThisInstance && currentInstancePointer->RefCount != 0) 1031if (currentInstancePointer->RefCount != 0) 1084if (currentInstancePointer->RefCount == 0) 1116if (currentInstancePointer->RefCount == 0) 1276Debug.Assert(currentInstancePointer->RefCount != 0, "RefCount must be 1 for instances passed to VerifyLifetime");