Using MIG RPC between 2 threads inside a process
Using MIG RPC between 2 threads inside a process
- Subject: Using MIG RPC between 2 threads inside a process
- From: Stéphane Letz <email@hidden>
- Date: Wed, 15 Sep 2004 10:12:26 +0200
Hi,
I'm trying to use MIG generated RPC between 2 threads inside a *same*
process as a "pracical" way for a thread to notify another one. The
idea was to have one thread send a message to the other one without the
need for an intermediate lock-free fifo for example.
Basically I'm using the client logic inside the server : accessing the
RPC port that is published by the server and using RPC call on this
port from one thread to be handled by another "listening" thread.
I had to hack the MIG generated files to avoid names conflict (the same
RPC call that is usually compiled on server and client side
independently is now compiled on the server side).
Even if it seems to work correctly, I was wondering if is is correct to
use MIG RPC system like that or if another light inter-thread
communication system should be used.
Thanks
Stephane Letz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden