mirror of
https://github.com/donnaskiez/ac.git
synced 2024-11-21 22:24:08 +01:00
13 lines
366 B
C++
13 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 ); } );
|
||
|
}
|