XSemaphore now calls CreateNative
This commit is contained in:
parent
bdcadeffe5
commit
b7aabd7860
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue