コード例 #1
0
ファイル: Cond.cpp プロジェクト: happyluo/Threading
void Threading::Cond::doWait() const
{
    try
    {
        m_worksem.Wait();
        postWait(false);
    }
    catch (...)
    {
        postWait(true);
        throw;
    }
}
コード例 #2
0
ファイル: Cond.cpp プロジェクト: 2008hatake/zeroc-ice
void
IceUtil::Cond::dowait() const
{
    try
    {
        _queue.wait();
        postWait(false);
    }
    catch(...)
    {
        postWait(true);
        throw;
    }
}
コード例 #3
0
ファイル: Cond.cpp プロジェクト: happyluo/Threading
bool Threading::Cond::timedDowait(const Time& timeout) const
{
    try
    {
        bool returnVal = m_worksem.TimedWait(timeout);
        postWait(!returnVal);
        return returnVal;
    }
    catch (...)
    {
        postWait(true);
        throw;
    }
}
コード例 #4
0
ファイル: Cond.cpp プロジェクト: 2008hatake/zeroc-ice
bool
IceUtil::Cond::timedDowait(const Time& timeout) const
{
    try
    {
        bool rc = _queue.timedWait(timeout);
        postWait(!rc);
        return rc;
    }
    catch(...)
    {
        postWait(true);
        throw;
    }
}