Exemplo n.º 1
0
        public bool SendFSP(short vkey, short arg, short clientFrameId)
        {
            if (m_IsRunning)
            {
                if (m_FSPCodec.WriteToSendQueue(vkey, arg, clientFrameId))
                {
                    if (FSPDebuger.EnableLog)
                    {
                        ushort seq = m_FSPCodec.CurrentSEQ;
                        Debuger.Log(LOG_TAG_MAIN, "SendFSP() vkey = {0}, arg = {1}, seq = {2}", vkey, arg, seq);
                    }

                    lock (this)
                    {
                        Monitor.Pulse(this);
                    }

                    return(true);
                }
            }
            return(false);
        }