update POSIX mqueue .

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1124 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
bernard.xiong
2010-11-26 10:33:44 +00:00
parent baf30c5f3c
commit a9424c09e1
2 changed files with 29 additions and 51 deletions

View File

@@ -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;