waiting for RPC method to be called
Emery Hemingway
ehmry at ...548...
Sun Apr 22 09:02:26 CEST 2018
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 at ...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?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.genode.org/pipermail/users/attachments/20180422/3c06cb82/attachment.sig>
More information about the users
mailing list