kernel: pass ref in CodeSet

This commit is contained in:
Weiyi Wang 2018-10-12 15:21:32 -04:00
parent 7449ba85a6
commit 213b259cf1
10 changed files with 56 additions and 30 deletions

View file

@ -13,6 +13,7 @@ namespace Kernel {
class AddressArbiter;
class Event;
class Mutex;
class CodeSet;
enum class ResetType {
OneShot,
@ -50,6 +51,8 @@ public:
* @return Pointer to new Mutex object
*/
SharedPtr<Mutex> CreateMutex(bool initial_locked, std::string name = "Unknown");
SharedPtr<CodeSet> CreateCodeSet(std::string name, u64 program_id);
};
} // namespace Kernel