Exemple #1
0
    public void PushMsg(IThreadMsg msg)
    {
        if (null == msg)
        {
            return;
        }

        if (null == m_tIns)
        {
            LogHelp.LogAuto("[Warning] : BackGround Thread Is Not Exist!!");
        }

        try
        {
            m_lockTask.Lock();
            m_listTaskArray.AddLast(msg);
        }
        catch
        {
        }
        finally
        {
            m_lockTask.UnLock();
        }
    }