Skip to content
Snippets Groups Projects
Verified Commit 7f3f2fa1 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Add some messages when unimplemented PTE functions are called

parent 8576b997
No related branches found
No related tags found
No related merge requests found
...@@ -237,12 +237,15 @@ pub unsafe extern "C" fn pte_osThreadWaitForEnd(handle: pte_osThreadHandle) -> p ...@@ -237,12 +237,15 @@ pub unsafe extern "C" fn pte_osThreadWaitForEnd(handle: pte_osThreadHandle) -> p
#[no_mangle] #[no_mangle]
pub unsafe extern "C" fn pte_osThreadCancel(handle: pte_osThreadHandle) -> pte_osResult { pub unsafe extern "C" fn pte_osThreadCancel(handle: pte_osThreadHandle) -> pte_osResult {
println!("pte_osThreadCancel {:#x}", handle);
//TODO: allow cancel of thread //TODO: allow cancel of thread
PTE_OS_OK PTE_OS_OK
} }
#[no_mangle] #[no_mangle]
pub unsafe extern "C" fn pte_osThreadCheckCancel(handle: pte_osThreadHandle) -> pte_osResult { pub unsafe extern "C" fn pte_osThreadCheckCancel(handle: pte_osThreadHandle) -> pte_osResult {
println!("pte_osThreadCheckCancel {:#x}", handle);
//TODO: thread cancel
PTE_OS_OK PTE_OS_OK
} }
...@@ -363,6 +366,7 @@ pub unsafe extern "C" fn pte_osSemaphoreCancellablePend( ...@@ -363,6 +366,7 @@ pub unsafe extern "C" fn pte_osSemaphoreCancellablePend(
handle: pte_osSemaphoreHandle, handle: pte_osSemaphoreHandle,
pTimeout: *mut c_uint, pTimeout: *mut c_uint,
) -> pte_osResult { ) -> pte_osResult {
println!("pte_osSemaphoreCancellablePend {:p} {:p}", handle, pTimeout);
//TODO: thread cancel //TODO: thread cancel
pte_osSemaphorePend(handle, pTimeout) pte_osSemaphorePend(handle, pTimeout)
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment