mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-27 21:24:11 -04:00
strat: statically allocate additional threads
This commit is contained in:
parent
fbb5730369
commit
535e49a38d
17 changed files with 123 additions and 42 deletions
|
@ -22,7 +22,7 @@ namespace sts::fatal::srv {
|
|||
namespace {
|
||||
|
||||
/* Task types. */
|
||||
class PowerControlTask : public ITask {
|
||||
class PowerControlTask : public ITaskWithDefaultStack {
|
||||
private:
|
||||
bool TryShutdown();
|
||||
void MonitorBatteryState();
|
||||
|
@ -33,7 +33,7 @@ namespace sts::fatal::srv {
|
|||
}
|
||||
};
|
||||
|
||||
class PowerButtonObserveTask : public ITask {
|
||||
class PowerButtonObserveTask : public ITaskWithDefaultStack {
|
||||
private:
|
||||
void WaitForPowerButton();
|
||||
public:
|
||||
|
@ -43,7 +43,7 @@ namespace sts::fatal::srv {
|
|||
}
|
||||
};
|
||||
|
||||
class StateTransitionStopTask : public ITask {
|
||||
class StateTransitionStopTask : public ITaskWithDefaultStack {
|
||||
public:
|
||||
virtual Result Run() override;
|
||||
virtual const char *GetName() const override {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue