mirror of
https://github.com/debauchee/barrier.git
synced 2024-11-27 18:47:34 +03:00
e3dcf7febf
improved error messages when uninstalling service.
26 lines
280 B
C++
26 lines
280 B
C++
#include "CFunctionJob.h"
|
|
|
|
//
|
|
// CFunctionJob
|
|
//
|
|
|
|
CFunctionJob::CFunctionJob(void (*func)(void*), void* arg) :
|
|
m_func(func),
|
|
m_arg(arg)
|
|
{
|
|
// do nothing
|
|
}
|
|
|
|
CFunctionJob::~CFunctionJob()
|
|
{
|
|
// do nothing
|
|
}
|
|
|
|
void
|
|
CFunctionJob::run()
|
|
{
|
|
if (m_func != NULL) {
|
|
m_func(m_arg);
|
|
}
|
|
}
|