mirror-ac/user/report.cpp

13 lines
366 B
C++
Raw Normal View History

2023-08-18 07:33:13 +02:00
#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 ); } );
}