Example #1
0
 public bool CreatePadInt(int uid)
 {
     try {
         return(serverState.CreatePadInt(uid));
     }
     catch (PadIntAlreadyExistsException) {
         throw;
     }
     catch (ServerDoesNotReplyException) {
         throw;
     }
 }
Example #2
0
        internal override bool CreatePadInt(int uid)
        {
            Logger.Log(new String[] { "FreezedServer", Server.ID.ToString(), "createPadInt", "uid ", uid.ToString() });
            bool result;

            lock (this) {
                while (!recover)
                {
                    Monitor.Wait(this);
                }
                result = oldState.CreatePadInt(uid);
                Monitor.Pulse(this);
            }
            return(result);
        }