• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Using MIG RPC between 2 threads inside a process
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Using MIG RPC between 2 threads inside a process (From: Stéphane Letz <email@hidden>)

  • Prev by Date: Re: incomplete man pages....
  • Next by Date: Re: incomplete man pages....
  • Previous by thread: Using MIG RPC between 2 threads inside a process
  • Next by thread: Re: Using MIG RPC between 2 threads inside a process
  • Index(es):
    • Date
    • Thread