[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] Pmsg() usage



Hello

I'm trying use the Mint function Pmsg() and I have some problems probably because I don't nderstand how it work!

I have 2 programs one is something like this:

...
Pmsg(0,mailboxid,&rendezvous);
printf("Ok I have a message\n");
....
printf("Sending message ...\n");
Pmsg(1,mailboxid,&rendezvous);   /* send answer */
printf("message send\n");
Pterm();

The other program send after the first:
...
Pmsg(2,maiboxid,&rendezvous); /* send message and wait for an answer */
printf("Ok I have my answer\n");
Pterm();

mailboxid are the same in the 2 software

In the console I receive this:

Ok I have a message
Sending message ...


And nothing more programs never  quit application:
app1 never quit this call : Pmsg(1,mailboxid,&rendezvous); /* send answer */ and app2: never quit this call: Pmsg(2,maiboxid,&rendezvous); /* send message and wait for an answer */

So whats wrong in my call? I have try to add as mailboxid=mailboxid|0xFFFF0000L but not better

I test it on Mint 1.16.0 beta under Aranym I have not more recent version or on any other system.

Thanks
Olivier