sys_arch unit tests: refine test_sys_arch_waiting_fn a bit

This commit is contained in:
goldsimon
2017-03-18 10:22:44 +01:00
parent 81e4726607
commit 972b7c2bfd
2 changed files with 6 additions and 6 deletions

View File

@@ -56,12 +56,12 @@ typedef u32_t sys_thread_t;
#define SYS_ARCH_PROTECT(lev)
#define SYS_ARCH_UNPROTECT(lev)
/* to implement doing something while waiting:
/* to implement doing something while blocking on an mbox or semaphore:
* pass a function to test_sys_arch_wait_callback() that returns
* '0' if waiting again and
* '1' if now there should be something to do (used for asserting)
*/
typedef int (*test_sys_arch_waiting_fn)(void* wait_element);
typedef int (*test_sys_arch_waiting_fn)(sys_sem_t* wait_sem, sys_mbox_t* wait_mbox);
void test_sys_arch_wait_callback(test_sys_arch_waiting_fn waiting_fn);
#endif /* LWIP_HDR_TEST_SYS_ARCH_H */