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

Re: clocks


  • Subject: Re: clocks
  • From: Sam Aaron <email@hidden>
  • Date: Mon, 17 Nov 2008 21:10:16 +0100

Hi Jeff,

thank you very much for your descriptive email.

The algorithm you specify was in fact the first approach I took. However the cumulative effect of what you describe as the scheduling latency and the high latency of JRuby's message passing (which was generating and sending MIDI packets) made me believe that there was a better approach, and perhaps even something already available I could just pick up and run with.

(I had recently assumed that Core Audio Clock might have been that very thing which led me to this list)

However, from what I understand of what you were describing, all I need to do is to drop down to a C thread and use more accurate system calls. I have heard of mach_absolute_time, however, I don't have much experience in C thread scheduling. In particular I'm not aware of what you describe as the 'time constraint policy the scheduler provides' an understanding of which you say is necessary to ensure as little scheduling latency as possible occurs. Do you by any chance have any pointers to documentation/examples of this. In a similar vein perhaps you might also be so kind as to point me to documentation/examples of pthread_cond_timedwait_relative_np().

Thanks once again,

Sam Aaron
---
http://sam.aaron.name
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: clocks
      • From: Jeff Moore <email@hidden>
References: 
 >clocks (From: Sam Aaron <email@hidden>)
 >Re: clocks (From: Jeff Moore <email@hidden>)

  • Prev by Date: Re: Basic Description
  • Next by Date: Re: clocks
  • Previous by thread: Re: clocks
  • Next by thread: Re: clocks
  • Index(es):
    • Date
    • Thread