如题,Linux下的IPC机制消息队列。
#include <sys/msg.h>
#include <sys/ipc.h>
#include <sys/type.h>发送消息:msgsnd
接收消息:msgrcv
创建消息队列:msgget我想问的是,这种在Linux下支持的IPC机制,是否也在Android源码开发模式中也支持?找了半天,发现Android下没有此头文件:<sys/msg.h>
难道真的不支持?
那如果要支持该怎么做?

解决方案 »

  1.   

    找到了msg.h头文件,但里边就是一些结构定义,和宏定义外,没有函数声明。。
    这说明Android真的不支持Linux下的消息队列机制?
      

  2.   

    posix 消息队列好像也不支持...
    mqueue.h 头文件好像在Android源码下也不支持...
      

  3.   

    不支持,android放弃了,参考:
    http://groups.google.com/group/android-ndk/browse_thread/thread/2a82e230efd5ab70/50c4d1e8d615fc74?#50c4d1e8d615fc74
    http://groups.google.com/group/android-porting/browse_thread/thread/31747d788009c4a5
    郁闷。。结帧!