| 64 | } |
| 65 | |
| 66 | bool pop( value_type& dest ) |
| 67 | { |
| 68 | scoped_lock l( m_Lock ); |
| 69 | if ( !m_PQueue.empty()) { |
| 70 | dest = m_PQueue.top(); |
| 71 | m_PQueue.pop(); |
| 72 | return true; |
| 73 | } |
| 74 | return false; |
| 75 | } |
| 76 | |
| 77 | template <typename Q, typename MoveFunc> |
| 78 | bool pop_with( Q& dest, MoveFunc f ) |