Re: Tricks to avoid mutexes
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