J
Jun
hi,
just want to know if std::queue empty() is thread safe (running on 2 or more
thread)... so i can do,
if( !queue.empty() )
{
lock()
....
unlock()
}
instead of...
lock()
if( !queue.empty() )
{
....
}
unlock()
thanks in advance
just want to know if std::queue empty() is thread safe (running on 2 or more
thread)... so i can do,
if( !queue.empty() )
{
lock()
....
unlock()
}
instead of...
lock()
if( !queue.empty() )
{
....
}
unlock()
thanks in advance