src/SerifHTTPServer/SerifWorkQueue.cpp
// This should *not* be called from the queue's thread; only from 
// the server's thread.

This should *not* be called from the queue's thread; only from
the server's thread.
This should * not * be called from the queue ' s thread ; only from the server ' s thread .
void SerifWorkQueue::shutdown(bool wait) {
    boost::mutex::scoped_lock lock(_mutex);
    _shutdown = true;
	_tasks_ready.notify_one();
    if (wait)
        _shutdown_complete.wait(lock);
}
void SerifWorkQueue :: shutdown ( bool wait ) { boost :: mutex :: scoped_lock lock ( _mutex ) ; _shutdown = true ; _tasks_ready . notify_one ( ) ; if ( wait ) _shutdown_complete . wait ( lock ) ; }
This should *not* be called from the queue's thread; only from
the server's thread.
This should * not * be called from the queue ' s thread ; only from the server ' s thread .