• 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: inter-thread communication
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: inter-thread communication


  • Subject: Re: inter-thread communication
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Sat, 13 Mar 2010 16:25:05 +0100

Le 13 mars 2010 à 00:15, Joel Reymont a écrit :

>
> On Mar 11, 2010, at 9:32 AM, Jean-Daniel Dupas wrote:
>
>> For 10.6, uses Blocks, (CFRunLoopPerformBlock),
>
> How do you make this synchronous, i.e. have CFRunLoopPerformBlock wait for results?


It's not designed to be synchronous, but you can create a semaphore or a condition, wait on this semaphore just after calling CFRunLoopPerformBlock, and signal the semaphore at the end of the block.

-- Jean-Daniel




 _______________________________________________
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: inter-thread communication
      • From: Joel Reymont <email@hidden>
References: 
 >inter-thread communication (From: Joel Reymont <email@hidden>)
 >Re: inter-thread communication (From: Jean-Daniel Dupas <email@hidden>)
 >Re: inter-thread communication (From: Joel Reymont <email@hidden>)

  • Prev by Date: Re: inter-thread communication
  • Next by Date: Re: inter-thread communication
  • Previous by thread: Re: inter-thread communication
  • Next by thread: Re: inter-thread communication
  • Index(es):
    • Date
    • Thread