mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-24 03:23:15 +03:00
19 lines
270 B
C++
19 lines
270 B
C++
#ifndef CFUNCTIONJOB_H
|
|
#define CFUNCTIONJOB_H
|
|
|
|
#include "IJob.h"
|
|
|
|
class CFunctionJob : public IJob {
|
|
public:
|
|
CFunctionJob(void (*func)(void*), void* arg = NULL);
|
|
|
|
// IJob overrides
|
|
virtual void run();
|
|
|
|
private:
|
|
void (*m_func)(void*);
|
|
void* m_arg;
|
|
};
|
|
|
|
#endif
|