From af965befa929b4c1809e5dfba01402c1aad5fd74 Mon Sep 17 00:00:00 2001 From: "bernard.xiong" Date: Fri, 4 Dec 2009 09:37:14 +0000 Subject: change mempool hook parameter and fix the name mistake of rt_scheduler_sethook function. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@192 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- include/rtthread.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/rtthread.h b/include/rtthread.h index 00cfd42758..fecdd5eac2 100644 --- a/include/rtthread.h +++ b/include/rtthread.h @@ -133,7 +133,7 @@ void rt_enter_critical(void); void rt_exit_critical(void); #ifdef RT_USING_HOOK -void rt_schedule_sethook(void (*hook)(rt_thread_t from, rt_thread_t to)); +void rt_scheduler_sethook(void (*hook)(rt_thread_t from, rt_thread_t to)); #endif /*@}*/ @@ -157,8 +157,8 @@ void *rt_mp_alloc (rt_mp_t mp, rt_int32_t time); void rt_mp_free (void *block); #ifdef RT_USING_HOOK -void rt_mp_alloc_sethook(void (*hook)(void *block)); -void rt_mp_free_sethook(void (*hook)(void *block)); +void rt_mp_alloc_sethook(void (*hook)(struct rt_mempool* mp, void *block)); +void rt_mp_free_sethook(void (*hook)(struct rt_mempool* mp, void *block)); #endif #endif -- cgit v1.3.1