summaryrefslogtreecommitdiff
path: root/include/JSystem/JAudio2/JASMutex.h
blob: b8c21c35faa746f7289a7b73bcd2ab5226f66d4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef JASMUTEX_H
#define JASMUTEX_H

#include "dolphin/os/OSMutex.h"

/**
 * @ingroup jsystem-jaudio
 * 
 */
struct JASMutexLock {
    JASMutexLock(OSMutex* mutex) {
        mMutex = mutex;
        OSLockMutex(mMutex);
    }
    ~JASMutexLock() { OSUnlockMutex(mMutex); }

    /* 0x0 */ OSMutex* mMutex;
};

#endif