Exemplo n.º 1
0
void Threading::Cond::doWait() const
{
    try
    {
        m_worksem.Wait();
        postWait(false);
    }
    catch (...)
    {
        postWait(true);
        throw;
    }
}
Exemplo n.º 2
0
void
IceUtil::Cond::dowait() const
{
    try
    {
        _queue.wait();
        postWait(false);
    }
    catch(...)
    {
        postWait(true);
        throw;
    }
}
Exemplo n.º 3
0
bool Threading::Cond::timedDowait(const Time& timeout) const
{
    try
    {
        bool returnVal = m_worksem.TimedWait(timeout);
        postWait(!returnVal);
        return returnVal;
    }
    catch (...)
    {
        postWait(true);
        throw;
    }
}
Exemplo n.º 4
0
bool
IceUtil::Cond::timedDowait(const Time& timeout) const
{
    try
    {
        bool rc = _queue.timedWait(timeout);
        postWait(!rc);
        return rc;
    }
    catch(...)
    {
        postWait(true);
        throw;
    }
}