Probably both should use synchronous messages instead of mailboxes.
Giovanni
send data between 2 threads
Moderators: RoccoMarco, lbednarz, tfAteba
- Giovanni
- Site Admin
- Posts: 14892
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 996 times
Re: send data between 2 threads
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..
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
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
Sorry for the confusion!
~ Tectu
- Giovanni
- Site Admin
- Posts: 14892
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 996 times
Re: send data between 2 threads
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
Anyway, synchronous messages is the way to go for this kind of applications.
Giovanni