Page 2 of 2

Re: send data between 2 threads

Posted: Mon Feb 04, 2013 10:31 am
by Giovanni
Probably both should use synchronous messages instead of mailboxes.

Giovanni

Re: send data between 2 threads

Posted: Mon Feb 04, 2013 10:35 am
by mabl
The wrapper is using synchronous messages.
https://github.com/mabl/ChibiosFatFSWor ... sWrapper.c

The return code of the commands is used, and the functions it is wrapping are blocking. So this is the obvious choice..

Re: send data between 2 threads

Posted: Mon Feb 04, 2013 10:38 am
by Tectu
Oh, I mixed up these names... ChibiOS/GFX does use synchronus messages as well... (mostly the return value is just not used).
Sorry for the confusion!


~ Tectu

Re: send data between 2 threads

Posted: Mon Feb 04, 2013 11:22 am
by Giovanni
Ah OK, I remembered about messages but Tectu's post confused me.

Anyway, synchronous messages is the way to go for this kind of applications.

Giovanni