mirror of
https://github.com/Relintai/voxelman.git
synced 2024-11-14 10:17:20 +01:00
VoxelJob should be a inherited from Reference if ThreadPool is not available.
This commit is contained in:
parent
b069d38265
commit
4ecc424b84
@ -28,7 +28,7 @@ SOFTWARE.
|
|||||||
#if THREAD_POOL_PRESENT
|
#if THREAD_POOL_PRESENT
|
||||||
#include "../../../thread_pool/thread_pool_job.h"
|
#include "../../../thread_pool/thread_pool_job.h"
|
||||||
#else
|
#else
|
||||||
#include "core/resource.h"
|
#include "core/reference.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "../../defines.h"
|
#include "../../defines.h"
|
||||||
@ -43,8 +43,8 @@ class VoxelChunk;
|
|||||||
class VoxelJob : public ThreadPoolJob {
|
class VoxelJob : public ThreadPoolJob {
|
||||||
GDCLASS(VoxelJob, ThreadPoolJob);
|
GDCLASS(VoxelJob, ThreadPoolJob);
|
||||||
#else
|
#else
|
||||||
class VoxelJob : public Resource {
|
class VoxelJob : public Reference {
|
||||||
GDCLASS(VoxelJob, Resource);
|
GDCLASS(VoxelJob, Reference);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
Loading…
Reference in New Issue
Block a user