mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-24 06:02:22 -06:00
Started over.
This commit is contained in:
parent
27ead1f713
commit
ff81f708e2
132 changed files with 7634 additions and 3960 deletions
19
base/CFunctionJob.cpp
Normal file
19
base/CFunctionJob.cpp
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue