diff options
| author | bernard.xiong <[email protected]> | 2010-11-26 10:33:44 +0000 |
|---|---|---|
| committer | bernard.xiong <[email protected]> | 2010-11-26 10:33:44 +0000 |
| commit | a9424c09e12e09c309d30eb79e2b59f177133aac (patch) | |
| tree | c4bc1a059809ef584176a13a652bd8dacd0495e2 /components/pthreads/mqueue.h | |
| parent | baf30c5f3c5ffb6f2a98ebf784559d8b87132c51 (diff) | |
update POSIX mqueue .
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1124 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/pthreads/mqueue.h')
| -rw-r--r-- | components/pthreads/mqueue.h | 11 |
1 files changed, 2 insertions, 9 deletions
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 <sys/signal.h>
#include <pthread.h>
-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;
|
