diff options
author | Subv <subv2112@gmail.com> | 2014-12-03 18:49:51 -0500 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2014-12-13 13:40:09 -0500 |
commit | 82c84883a5d10bd6c9a3516fe16b996c5333360e (patch) | |
tree | 79016ba73405e93affa092432c8c0b86bd917aac /src/core/hle/kernel/semaphore.h | |
parent | 9ce11b2d925b08352f9349ecbf228431581331f4 (diff) |
SVC: Implemented svcCreateSemaphore
ToDo: Implement svcReleaseSemaphore
* Some testing against hardware needed
Diffstat (limited to 'src/core/hle/kernel/semaphore.h')
-rw-r--r-- | src/core/hle/kernel/semaphore.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/core/hle/kernel/semaphore.h b/src/core/hle/kernel/semaphore.h new file mode 100644 index 00000000..6a686db2 --- /dev/null +++ b/src/core/hle/kernel/semaphore.h @@ -0,0 +1,22 @@ +// Copyright 2014 Citra Emulator Project +// Licensed under GPLv2+ +// Refer to the license.txt file included. + +#pragma once + +#include "common/common_types.h" + +#include "core/hle/kernel/kernel.h" + +namespace Kernel { + +/** + * Creates a semaphore + * @param initial_count number of reserved entries in the semaphore + * @param max_count maximum number of holders the semaphore can have + * @param name Optional name of semaphore + * @return Handle to newly created object + */ +Handle CreateSemaphore(u32 initial_count, u32 max_count, const std::string& name = "Unknown"); + +} // namespace |