Re: Using MIG RPC between 2 threads inside a process
Re: Using MIG RPC between 2 threads inside a process
- Subject: Re: Using MIG RPC between 2 threads inside a process
- From: Jim Magee <email@hidden>
- Date: Wed, 15 Sep 2004 16:02:10 -0400
On Sep 15, 2004, at 4:12 AM, Stéphane Letz wrote:
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).
You can use the "ServerPrefix" flag in the MIG .defs IDL file to avoid
the name conflict (see <mach/exc.defs>).
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.
Something involving pthread synchronizers (mutexes and condition
variables) will be more efficient. But if one of the threads is
already committed to using Mach IPC anyway, this is a good way to "mesh
in" with what it is already expecting.
--Jim
_______________________________________________
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