Add some messages when unimplemented PTE functions are called

This commit is contained in:
Jeremy Soller
2022-04-14 07:52:39 -06:00
parent 8576b99759
commit 7f3f2fa105
+4
View File
@@ -237,12 +237,15 @@ pub unsafe extern "C" fn pte_osThreadWaitForEnd(handle: pte_osThreadHandle) -> p
#[no_mangle]
pub unsafe extern "C" fn pte_osThreadCancel(handle: pte_osThreadHandle) -> pte_osResult {
println!("pte_osThreadCancel {:#x}", handle);
//TODO: allow cancel of thread
PTE_OS_OK
}
#[no_mangle]
pub unsafe extern "C" fn pte_osThreadCheckCancel(handle: pte_osThreadHandle) -> pte_osResult {
println!("pte_osThreadCheckCancel {:#x}", handle);
//TODO: thread cancel
PTE_OS_OK
}
@@ -363,6 +366,7 @@ pub unsafe extern "C" fn pte_osSemaphoreCancellablePend(
handle: pte_osSemaphoreHandle,
pTimeout: *mut c_uint,
) -> pte_osResult {
println!("pte_osSemaphoreCancellablePend {:p} {:p}", handle, pTimeout);
//TODO: thread cancel
pte_osSemaphorePend(handle, pTimeout)
}