public static ReceiveTrDataFactory getClass1Instance() {
     if (_multiThread == false) {
         if (_class1 == null) {
             _class1 = new ReceiveTrDataFactory();
         }
     } else {
         if (_class1 == null) {
             lock (object1) {
                 _class1 = new ReceiveTrDataFactory();
             }
         }
     }
     return _class1;
 }
示例#2
0
 public static ReceiveTrDataFactory getClass1Instance()
 {
     if (_multiThread == false)
     {
         if (_class1 == null)
         {
             _class1 = new ReceiveTrDataFactory();
         }
     }
     else
     {
         if (_class1 == null)
         {
             lock (object1) {
                 _class1 = new ReceiveTrDataFactory();
             }
         }
     }
     return(_class1);
 }