Ejemplo n.º 1
0
 public static void ReleaseRef()
 {
     lock (Monitor)
     {
         RefCount--;
         if (RefCount == 0)
         {
             PlaylistDelegates.FreeNativeCallbacks();
             SessionDelegates.FreeNativeCallbacks();
             PlaylistContainerDelegates.FreeNativeCallbacks();
         }
     }
 }
Ejemplo n.º 2
0
 public static void AddRef()
 {
     lock (Monitor)
     {
         if (RefCount == 0)
         {
             PlaylistDelegates.AllocNativeCallbacks();
             SessionDelegates.AllocNativeCallbacks();
             PlaylistContainerDelegates.AllocNativeCallbacks();
         }
         RefCount++;
     }
 }