mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-07 13:57:48 +00:00
GEEKING
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
#pragma once
|
||||
|
||||
#include "V8DataModel/DataModelJob.h"
|
||||
|
||||
namespace RBX {
|
||||
|
||||
class SleepingJob : public DataModelJob
|
||||
{
|
||||
private:
|
||||
rbx::atomic<int> isAwake;
|
||||
const double desiredFps;
|
||||
RBX::Time lastWakeTime;
|
||||
|
||||
public:
|
||||
SleepingJob(const char* name, TaskType taskType, bool isPerPlayer,
|
||||
shared_ptr<RBX::DataModelArbiter> arbiter, RBX::Time::Interval stepBudget,
|
||||
double desiredFps);
|
||||
|
||||
void wake();
|
||||
void sleep();
|
||||
|
||||
virtual RBX::Time::Interval sleepTime(const Stats&);
|
||||
|
||||
virtual RBX::TaskScheduler::Job::Error error(const Stats& stats);
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user