Liblor / advanced_operating_systems_2020

Advanced Operating System Course at ETHZ
MIT License
19 stars 3 forks source link

do not expose lmp/marshall state and make it stack based #87

Closed abertschi closed 4 years ago

abertschi commented 4 years ago

There is no need to share the client state of rpc/lmp marshal in the shared struct of struct aos_rpc. This change makes the struct client_response_state stack based. struct client_response_state is used to communicate data between the rpc caller and the rpc receive handler. It is now allocated for each call on the stack and not exposed to the caller.