TQueue::IsEmpty

Checks whether the queue is empty. To be called only from consumer thread.