diff --git a/simgear/threads/SGQueue.hxx b/simgear/threads/SGQueue.hxx index 37122c5a..c4fab564 100644 --- a/simgear/threads/SGQueue.hxx +++ b/simgear/threads/SGQueue.hxx @@ -127,8 +127,8 @@ public: */ virtual T pop() { SGGuard g(mutex); - //if (fifo.empty()) throw NoSuchElementException(); - assert( ! this->fifo.empty() ); + if (this->fifo.empty()) return T(); // assumes T is default constructable + // if (fifo.empty()) // { // mutex.unlock();