public static ReceiveRealDataFactory getClass1Instance() {
     if (_multiThread == false) {
         if (_class1 == null) {
             _class1 = new ReceiveRealDataFactory();
         }
     } else {
         if (_class1 == null) {
             lock (object1) {
                 _class1 = new ReceiveRealDataFactory();
             }
         }
     }
     return _class1;
 }
예제 #2
0
 public static ReceiveRealDataFactory getClass1Instance()
 {
     if (_multiThread == false)
     {
         if (_class1 == null)
         {
             _class1 = new ReceiveRealDataFactory();
         }
     }
     else
     {
         if (_class1 == null)
         {
             lock (object1) {
                 _class1 = new ReceiveRealDataFactory();
             }
         }
     }
     return(_class1);
 }