Beispiel #1
0
 internal static SingletonVersionDb Instance(int partitionCount = 1)
 {
     if (SingletonVersionDb.instance == null)
     {
         lock (initlock)
         {
             if (SingletonVersionDb.instance == null)
             {
                 SingletonVersionDb.instance = new SingletonVersionDb(partitionCount);
             }
         }
     }
     return(SingletonVersionDb.instance);
 }
Beispiel #2
0
 internal static void DestroyInstance()
 {
     SingletonVersionDb.instance = null;
 }