Hi Ben,
The 'Genode' way would be not to block for RPC, but to only run the component during RPC or signal handling. If you need a component to execute between RPC calls then signal handlers would be the way to go. A private signal handler can perform the operations you need and block for RPC by returning from the signal handling function. If the execution should resume after RPC, send a signal to the local signal handler before finishing the RPC method.
Cheers, Emery
On Sat, 21 Apr 2018 22:13:33 -0600 Nobody III <hungryninja101@...9...> wrote:
How do I get a component to wait for an RPC method to be called? Can I use a semaphore, or will that block RPC calls? Do I need a thread dedicated to handling RPC? If so, should I create a new Rpc_entrypoint and tell it to manage the Rpc_object?