From a9424c09e12e09c309d30eb79e2b59f177133aac Mon Sep 17 00:00:00 2001 From: "bernard.xiong" Date: Fri, 26 Nov 2010 10:33:44 +0000 Subject: update POSIX mqueue . git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1124 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- components/pthreads/mqueue.h | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'components/pthreads/mqueue.h') diff --git a/components/pthreads/mqueue.h b/components/pthreads/mqueue.h index fb99e58068..c6d17b80ff 100644 --- a/components/pthreads/mqueue.h +++ b/components/pthreads/mqueue.h @@ -7,7 +7,7 @@ #include #include -struct posix_mq +struct mqdes { /* reference count and unlinked */ rt_uint16_t refcount; @@ -16,14 +16,7 @@ struct posix_mq /* RT-Thread message queue */ rt_mq_t mq; /* next posix mqueue */ - struct posix_mq* next; -}; -typedef struct posix_mq posix_mq_t; - -struct mqdes -{ - rt_uint32_t flags; - posix_mq_t* mq; + struct mqdes* next; }; typedef struct mqdes* mqd_t; -- cgit v1.3.1