Robert Hyatt
Joined: 27 Feb 2006 Posts: 15816 Location: Birmingham, AL
|
Post subject: Re: C++11 atomic locks Posted: Mon Apr 09, 2012 5:09 pm |
|
|
| ZirconiumX wrote: |
There are several locks used for chess programs, spinlocks, mutexes etc.
So, as I am currently implementing SMP into FruitFly, would it be worth the hassle of converting the Toga mutexes to C++11 atomic locks?
Matthew:out |
First question is, what is your goal? Max performance on a dedicated machine? Use nothing but spinlocks. If you are going to compete for CPU resources with other running processes (non-chess processes) then a traditional mutex that spins and then blocks is the way to go... I only care about the former myself, not the latter. |
|