XSemaphore now calls CreateNative
This commit is contained in:
@@ -24,6 +24,8 @@ XSemaphore::~XSemaphore() {
|
|||||||
void XSemaphore::Initialize(int32_t initial_count, int32_t maximum_count) {
|
void XSemaphore::Initialize(int32_t initial_count, int32_t maximum_count) {
|
||||||
assert_null(native_handle_);
|
assert_null(native_handle_);
|
||||||
|
|
||||||
|
CreateNative(sizeof(X_SEMAPHORE));
|
||||||
|
|
||||||
native_handle_ = CreateSemaphore(NULL, initial_count, maximum_count, NULL);
|
native_handle_ = CreateSemaphore(NULL, initial_count, maximum_count, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,10 @@
|
|||||||
namespace xe {
|
namespace xe {
|
||||||
namespace kernel {
|
namespace kernel {
|
||||||
|
|
||||||
|
struct X_SEMAPHORE {
|
||||||
|
// TODO: Make this not empty!
|
||||||
|
};
|
||||||
|
|
||||||
class XSemaphore : public XObject {
|
class XSemaphore : public XObject {
|
||||||
public:
|
public:
|
||||||
XSemaphore(KernelState* kernel_state);
|
XSemaphore(KernelState* kernel_state);
|
||||||
|
|||||||
Reference in New Issue
Block a user