Message Queue API

Post Reply
ccfreak2k
Posts: 14
Joined: Sat Mar 06, 2010 1:11 pm

Message Queue API

Post by ccfreak2k » Mon Mar 22, 2010 12:28 am

The message queue API takes pointers but not a "size" argument, so what is the intended method of IPC?

shagkur
Posts: 53
Joined: Thu Sep 08, 2005 8:40 pm

Re: Message Queue API

Post by shagkur » Mon Mar 22, 2010 12:14 pm

Hi,

it's not intended to send arrays for instance. you rather send a pointer to a struct thru it with all the neccessary informations as member in it. Or even a simple data type like int to notify the other thread.
This allows for a wide use of this API.

regards
shagkur

User avatar
Izhido
Posts: 107
Joined: Fri Oct 19, 2007 10:57 pm
Location: Costa Rica
Contact:

Re: Message Queue API

Post by Izhido » Wed Mar 31, 2010 5:32 pm

Interesting... this means that the sending party is forced to send always the exact same structure format, all the time, for a specific message; also, that the receiving end will assume that the data comes *always* in that same format, all of the time again... is this correct?

WinterMute
Site Admin
Posts: 2003
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: Message Queue API

Post by WinterMute » Wed Mar 31, 2010 10:08 pm

That really depends on you, it's a void pointer, it can point to anything, could encode RIFF chunks for all the library cares.
Help keep devkitPro toolchains free, Donate today

Personal Blog

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 2 guests