mirror of
https://github.com/zeldaret/tp
synced 2026-08-18 13:43:24 -04:00
JASDriverIF, JASAiCtrl, JASDSPInterface (#1907)
* JASDriverIF * JASDriverIF sinit * JASAiCtrl * JASDSPInterface
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#ifndef JASCRITICALSECTION_H
|
||||
#define JASCRITICALSECTION_H
|
||||
|
||||
#include "dolphin/os/OSInterrupt.h"
|
||||
|
||||
class JASCriticalSection {
|
||||
public:
|
||||
JASCriticalSection() { mInterruptState = OSDisableInterrupts(); };
|
||||
~JASCriticalSection() { OSRestoreInterrupts(mInterruptState); };
|
||||
|
||||
private:
|
||||
u32 mInterruptState;
|
||||
};
|
||||
|
||||
#endif /* JASCRITICALSECTION_H */
|
||||
Reference in New Issue
Block a user