- Library source from AN721SW (cp210xmanufacturing_1.0.tar.gz) - Manufacturing tool source (cp210xsmt) - Builds 64-bit shared library with: make LIB_ARCH=64 - Datasheets and app notes in docs/
22 lines
424 B
C++
22 lines
424 B
C++
#ifndef REPORT_QUEUE_H
|
|
#define REPORT_QUEUE_H
|
|
|
|
#include "OsDep.h"
|
|
#include <vector>
|
|
|
|
class CReportQueue
|
|
{
|
|
public:
|
|
void Clear();
|
|
void Reserve(DWORD count);
|
|
void Enqueue(const BYTE* data, DWORD size);
|
|
void Dequeue(BYTE* data, DWORD size, DWORD* bytesDequeued);
|
|
DWORD Size();
|
|
|
|
protected:
|
|
std::vector<BYTE> m_queue;
|
|
CCriticalSectionLock m_Lock;
|
|
};
|
|
|
|
#endif // REPORT_QUEUE_H
|