From 4bd258ce7bf0ce2ccb4e015d52828494f73f740c Mon Sep 17 00:00:00 2001 From: "bernard.xiong" Date: Sun, 13 Sep 2009 23:34:52 +0000 Subject: remove fast event git-svn-id: https://rt-thread.googlecode.com/svn/trunk@46 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- include/rtdef.h | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) (limited to 'include/rtdef.h') diff --git a/include/rtdef.h b/include/rtdef.h index 2c21f5a258..027440fc48 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -169,7 +169,6 @@ typedef struct rt_object* rt_object_t; /* Type for kernel objects. */ * - Process * - Semaphore * - Mutex - * - FastEvent * - Event * - MailBox * - MessageQueue @@ -188,9 +187,6 @@ enum rt_object_class_type #ifdef RT_USING_MUTEX RT_Object_Class_Mutex, /* The object is a mutex. */ #endif -#ifdef RT_USING_FASTEVENT - RT_Object_Class_FastEvent, /* The object is a fast event. */ -#endif #ifdef RT_USING_EVENT RT_Object_Class_Event, /* The object is a event. */ #endif @@ -323,7 +319,7 @@ struct rt_thread #endif rt_uint32_t number_mask; -#if defined(RT_USING_EVENT) || defined(RT_USING_FASTEVENT) +#if defined(RT_USING_EVENT) /* thread event */ rt_uint32_t event_set; rt_uint8_t event_info; @@ -424,27 +420,12 @@ struct rt_mutex typedef struct rt_mutex* rt_mutex_t; #endif -#if defined(RT_USING_EVENT) || defined(RT_USING_FASTEVENT) +#if defined(RT_USING_EVENT) #define RT_EVENT_FLAG_AND 0x01 #define RT_EVENT_FLAG_OR 0x02 #define RT_EVENT_FLAG_CLEAR 0x04 #endif -#ifdef RT_USING_FASTEVENT -/* - * fast_event - */ -struct rt_fast_event -{ - struct rt_object parent; - - rt_uint32_t set; /* event set. */ - - rt_list_t thread_list[RT_EVENT_LENGTH]; /* threads blocked on this resource. */ -}; -typedef struct rt_fast_event* rt_fast_event_t; -#endif - #ifdef RT_USING_EVENT /* * event -- cgit v1.3.1