XSemaphore now calls CreateNative

This commit is contained in:
Dr. Chat 2015-06-12 21:31:00 -05:00
parent bdcadeffe5
commit b7aabd7860
2 changed files with 6 additions and 0 deletions

View File

@ -24,6 +24,8 @@ XSemaphore::~XSemaphore() {
void XSemaphore::Initialize(int32_t initial_count, int32_t maximum_count) {
assert_null(native_handle_);
CreateNative(sizeof(X_SEMAPHORE));
native_handle_ = CreateSemaphore(NULL, initial_count, maximum_count, NULL);
}

View File

@ -16,6 +16,10 @@
namespace xe {
namespace kernel {
struct X_SEMAPHORE {
// TODO: Make this not empty!
};
class XSemaphore : public XObject {
public:
XSemaphore(KernelState* kernel_state);