mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-08 23:14:20 +08:00
Started over.
This commit is contained in:
18
base/CFunctionJob.h
Normal file
18
base/CFunctionJob.h
Normal file
@@ -0,0 +1,18 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user