Probably both should use synchronous messages instead of mailboxes.
Giovanni
send data between 2 threads
Moderators: RoccoMarco, lbednarz, utzig, tfAteba, barthess
- Giovanni
- Site Admin
- Posts: 14457
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
-
- Posts: 417
- Joined: Tue Dec 21, 2010 10:19 am
- Location: Karlsruhe, Germany
- Been thanked: 1 time
- Contact:
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: 14457
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
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
Who is online
Users browsing this forum: No registered users and 54 guests