add notice about TCounter in TLockFreeQueue
Note: mandatory check (NEED_CHECK) was skipped
@@ -18,6 +18,11 @@ struct TDefaultLFCounter {
}
};
+// @brief lockfree queue
+// @tparam T - the queue element, should be movable
+// @tparam TCounter, a observer class to count number of items in queue
+// be carifull, IncCount and DecCount can be called on a moved object and
+// it is TCounter class responsibility to check validity of passed object
template <class T, class TCounter>
class TLockFreeQueue: public TNonCopyable {
struct TListNode {
