Atmosphere-libs/include/stratosphere/waitablemanagerbase.hpp
Michael Scire 26e676424d fs.mitm: WIP LayeredFS impl (NOTE: UNUSABLE ATM)
Also greatly refactors libstratosphere, and does a lot of other things.
There is a lot of code in this one.
2018-06-14 17:51:18 -06:00

15 lines
367 B
C++

#pragma once
#include <switch.h>
#include <atomic>
#include <vector>
class WaitableManagerBase {
std::atomic<u64> cur_priority;
public:
WaitableManagerBase() : cur_priority(0) { }
virtual ~WaitableManagerBase() { }
u64 get_priority() {
return std::atomic_fetch_add(&cur_priority, (u64)1);
}
};