Quantcast
Channel: Embedded Software (Read Only)
Viewing all articles
Browse latest Browse all 25965

Forum Post: RE: MessageQ Invalid queueId

$
0
0

Hi,

Thank you for you testing! actually I do MessageQ_registerHeap in Core0 before MessageQ_open and MessageQ_alloc like this:

Int status;
/* Register this heap with MessageQ */
MessageQ_registerHeap((IHeap_Handle)SharedRegion_getHeap(0), HEAP_ID);

/* Open the 'next' remote message queue. Spin until it is ready. */
do {
status = MessageQ_open(queueName, &queueId);
}
while (status < 0);
printf("queueId = %d\n",queueId);

message = (Message *)MessageQ_alloc(HEAP_ID, sizeof(Message));
if (message == NULL) {
System_abort("MessageQ_alloc failed\n");
}

Besides, do you mean I should try to create NDK in main? Can you tell me how to do it? Thank you!


Viewing all articles
Browse latest Browse all 25965

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>