Exemple #1
0
        internal override bool WritePadInt(int tid, int uid, int value)
        {
            Logger.Log(new String[] { "FreezedServer", Server.ID.ToString(), " writePadInt ", "tid", tid.ToString(), "uid", uid.ToString(), "value", value.ToString() });
            bool result;

            lock (this) {
                while (!recover)
                {
                    Monitor.Wait(this);
                }
                result = oldState.WritePadInt(tid, uid, value);
                Monitor.Pulse(this);
            }
            return(result);
        }
Exemple #2
0
        public bool WritePadInt(int tid, int uid, int value)
        {
            Logger.Log(new String[] { "Server ", ID.ToString(), " writePadInt ", "tid", tid.ToString(), "uid", uid.ToString(), "value", value.ToString(), serverState.StateMsg });

            try {
                return(serverState.WritePadInt(tid, uid, value));
            }
            catch (PadIntNotFoundException) {
                throw;
            }
            catch (AbortException) {
                throw;
            }
            catch (ServerDoesNotReplyException) {
                throw;
            }
        }