mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-21 01:52:01 +03:00
fee4095624
synergy.cpp and server.cpp into cmd/synergyd as synergyd.cpp. Moved and renamed related files. Moved remaining source files into lib/.... Modified and added makefiles as appropriate. Result is that library files are under lib with each library in its own directory and program files are under cmd with each command in its own directory.
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);
|
|
}
|
|
}
|