mirror of https://github.com/debauchee/barrier.git
20 lines
248 B
C++
20 lines
248 B
C++
|
#include "CFunctionJob.h"
|
||
|
|
||
|
//
|
||
|
// CFunctionJob
|
||
|
//
|
||
|
|
||
|
CFunctionJob::CFunctionJob(void (*func)(void*), void* arg) :
|
||
|
m_func(func),
|
||
|
m_arg(arg)
|
||
|
{
|
||
|
// do nothing
|
||
|
}
|
||
|
|
||
|
void CFunctionJob::run()
|
||
|
{
|
||
|
if (m_func != NULL) {
|
||
|
m_func(m_arg);
|
||
|
}
|
||
|
}
|