barrier/base/CFunctionJob.cpp

26 lines
280 B
C++
Raw Normal View History

2001-10-06 14:13:28 +00:00
#include "CFunctionJob.h"
//
// CFunctionJob
//
CFunctionJob::CFunctionJob(void (*func)(void*), void* arg) :
m_func(func),
m_arg(arg)
2001-10-06 14:13:28 +00:00
{
// do nothing
}
CFunctionJob::~CFunctionJob()
{
// do nothing
}
void
CFunctionJob::run()
2001-10-06 14:13:28 +00:00
{
if (m_func != NULL) {
m_func(m_arg);
}
}