mirror-ac/user/report.cpp
2023-08-18 15:33:13 +10:00

12 lines
366 B
C++

#include "report.h"
global::Report::Report( std::shared_ptr<global::ThreadPool> ThreadPool, LPTSTR PipeName )
{
this->thread_pool = ThreadPool;
this->client = std::make_unique<global::Client>( PipeName );
}
void global::Report::ReportViolation( TestReport* Report )
{
this->thread_pool->QueueJob( [ this, Report ]() {this->client->WriteToPipe( Report ); } );
}