Files
rocm-systems/src/core/queue.h
T

21 lines
420 B
C++
Raw Normal View History

2017-11-09 17:26:19 -06:00
#ifndef _SRC_CORE_QUEUE_H
#define _SRC_CORE_QUEUE_H
#include "core/types.h"
namespace rocprofiler {
class Queue {
2017-11-29 13:53:12 -06:00
public:
2017-11-09 17:26:19 -06:00
Queue() {}
virtual ~Queue() {}
virtual void Submit(const packet_t* packet) = 0;
virtual void Submit(const packet_t* packet, const size_t& count) {
for (const packet_t* p = packet; p < packet + count; ++p) Submit(p);
}
};
2017-11-29 13:53:12 -06:00
} // namespace rocprofiler
2017-11-09 17:26:19 -06:00
2017-11-29 13:53:12 -06:00
#endif // _SRC_CORE_QUEUE_H