Pchp.Core.PhpResource.RegisterInternalInstance C# (CSharp) Méthode

RegisterInternalInstance() static private méthode

Allocate a unique identifier for a resource.
Internal resources are given even numbers while resources allocated by extensions get odd numbers to minimize the communication between internal and external resource managers.
static private RegisterInternalInstance ( ) : int
Résultat int
		static int RegisterInternalInstance()
        {
            // Even numbers are reserved for internal use (odd for externals)
            return Interlocked.Increment(ref ResourceIdCounter) * 2;
        }