| 107 | // Virutal destructor |
| 108 | template<typename TDatums, typename TQueue> |
| 109 | QueueBase<TDatums, TQueue>::~QueueBase() |
| 110 | { |
| 111 | try |
| 112 | { |
| 113 | opLog("", Priority::Low, __LINE__, __FUNCTION__, __FILE__); |
| 114 | stop(); |
| 115 | opLog("", Priority::Low, __LINE__, __FUNCTION__, __FILE__); |
| 116 | } |
| 117 | catch (const std::exception& e) |
| 118 | { |
| 119 | error(e.what(), __LINE__, __FUNCTION__, __FILE__); |
| 120 | } |
| 121 | } |
| 122 | |
| 123 | template<typename TDatums, typename TQueue> |
| 124 | bool QueueBase<TDatums, TQueue>::forceEmplace(TDatums& tDatums) |