• 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
Using MIG RPC between 2 threads inside a process
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Using MIG RPC between 2 threads inside a process
      • From: Jim Magee <email@hidden>
  • Prev by Date: Re: incomplete man pages....
  • Next by Date: Re: incomplete man pages....
  • Previous by thread: Re: RAID-1 possible for multi-filesystem disk?
  • Next by thread: Re: Using MIG RPC between 2 threads inside a process
  • Index(es):
    • Date
    • Thread