Logo
Job.h
1#pragma once
2
3#include "base/Job.h"
4
5namespace SharpKmyBase
6{
7 ref class Job;
8
9 class nativeJob : kmyBase::Job {
10 public:
11 void* operator new(size_t sz) { return malloc(sz); }
12 void operator delete(void* ptr) { if (ptr)free(ptr); }
13
14 nativeJob(void *d);
15 void func(int cmd, void* param)override;
16 void *managedJob = nullptr;
17 };
18
19 public ref class Job {
20 public:
21 static void addJob(Job^ job);
22 static bool isEndJob(Job^ job);
23 static void call(void* ptr);
24 static void startJobThread();
25 !Job();
26 ~Job() {}
27 virtual void func() {}
28
29 private:
30 nativeJob *native = nullptr;
31 };
32}
Definition: Job.h:19
static void startJobThread()
Definition: Job.cpp:32
static bool isEndJob(Job^ job)
Definition: Job.cpp:16
virtual void func()
Definition: Job.h:27
~Job()
Definition: Job.h:26
static void call(void *ptr)
Definition: Job.cpp:23
static void addJob(Job^ job)
Definition: Job.cpp:5
Definition: Job.h:9
nativeJob(void *d)
Definition: Job.cpp:46
void * managedJob
Definition: Job.h:16
void func(int cmd, void *param) override
Definition: Job.cpp:51
Definition: Asset.cpp:6