コード例 #1
0
ファイル: Manager.cpp プロジェクト: BitHighlander/rippled
    void checkSources ()
    {
        if (m_checkSources)
        {
            if (m_logic.fetch_one () == 0)
            {
                m_journal.trace << "All sources checked";

                // Made it through the list without interruption!
                // Clear the flag and set the deadline timer again.
                //
                m_checkSources = false;

                m_journal.trace << "Next check timer expires in " <<
                    beast::RelativeTime::seconds (checkEverySeconds);

                m_checkTimer.setExpiration (checkEverySeconds);
            }
        }
    }