mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-10-18 18:34:20 +08:00
remove fast event
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@46 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user