Example #1
0
 public static MatchesGame getInstance()
 {
     if (instance == null)
     {
         lock (syncRoot) // Is used in order to not to be ambiguity
                         // during execution of different threads...
         {
             if (instance == null)
             {
                 instance = new MatchesGame();
             }
         }
     }
     return(instance);
 }
Example #2
0
 public void setToNull()
 {
     instance = null;
 }