Skip to end of metadata
Go to start of metadata

template<typename Data>
bool FB::SafeQueue< Data >::try_pop ( Data &  popped_value  )  [inline]

Try to pop a value off the front of the queue; if the queue is empty returns false.

Parameters:
[out] popped_value The popped value.
Returns:
true if a value is returned, false if the queue was empty

Definition at line 75 of file SafeQueue.h.

Referenced by FB::Npapi::NpapiBrowserHost::DoDeferredRelease(), and FB::ActiveX::ActiveXBrowserHost::DoDeferredRelease().

00076         {
00077             boost::mutex::scoped_lock lock(the_mutex);
00078             if(the_queue.empty())
00079             {
00080                 return false;
00081             }
00082             
00083             popped_value=the_queue.front();
00084             the_queue.pop();
00085             return true;
00086         }


Generated on 22 May 2013 for FireBreath by  doxygen 1.6.1
Labels
  • None