• 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: Tricks to avoid mutexes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tricks to avoid mutexes


  • Subject: Re: Tricks to avoid mutexes
  • From: Makira <email@hidden>
  • Date: Wed, 19 Jan 2005 19:58:42 -0500

Thank you for your answers.

I did some more research, and here's my conclusions:

- loding/storing a float or a double is always one instruction (lfs, lfd,
stfs or stfd)

- if the memory is aligned, it will always be only one memory access (even
for a double)

- the LSU will not allow a load access if there is a store pending at the
same address, until is completed

In order words, as long as the data is aligned, it is safe. Now I'm not 100%
sure about this, but close enough. Seems to work well.

> On the other hand, you may not necessarily want to apply param
> updates at any arbitrary sample time.  You might consider a separate
> lower param update rate.

To save some memory bandwidth, yes, I though about checking at about
half-millisecond intervals, or something like that. It doesn't cost much.

Makira


 _______________________________________________
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

References: 
 >Re: Tricks to avoid mutexes (From: Ben Dougall <email@hidden>)

  • Prev by Date: Re: Direct Monitoring
  • Next by Date: touching non-current MIDI setups
  • Previous by thread: Re: Tricks to avoid mutexes
  • Next by thread: Re: Tricks to avoid mutexes
  • Index(es):
    • Date
    • Thread