Rewrite Rtl critical section implementation (and implement full waiters)

This commit is contained in:
Dr. Chat
2015-12-08 15:15:23 -06:00
committed by Ben Vanik
parent 606aa9af6f
commit b97a39150b
2 changed files with 69 additions and 93 deletions

View File

@@ -15,6 +15,8 @@
namespace xe {
namespace kernel {
struct X_KEVENT;
namespace xboxkrnl {
dword_result_t NtSetEvent(dword_t handle, lpdword_t previous_state_ptr);
@@ -25,6 +27,12 @@ dword_result_t NtWaitForMultipleObjectsEx(dword_t count, lpdword_t handles,
dword_t alertable,
lpqword_t timeout_ptr);
dword_result_t KeWaitForSingleObject(lpvoid_t object_ptr, dword_t wait_reason,
dword_t processor_mode, dword_t alertable,
lpqword_t timeout_ptr);
dword_result_t KeSetEvent(pointer_t<X_KEVENT> event_ptr, dword_t increment,
dword_t wait);
} // namespace xboxkrnl
} // namespace kernel
} // namespace xe