SDL Digest, Vol 49, Issue 50

Message-ID: <774460.61405.qm at web180008.mail.gq1.yahoo.com>
Content-Type: text/plain; charset=“us-ascii”

Would it be possible to make these optional in the build?
I remember a while back I attempted to build the SDL 1.3 for an arm project and
I could because of these.
To the best of my knowledge, all arm architectures feature enough
op-code support to implement mutexes (SWP before Arm7, LDREX and STREX
after SWP was deprecated). That, in turn, is enough to implement any
atomic operations that might be needed (via critical-sections that
share their controlling mutexes according to address, like SDL
currently does it). See:
http://www.doulos.com/knowhow/arm/Hints_and_Tips/Implementing_Semaphores/

If for some reason your particular Arm processor (some of the Thumbs,
apparently) doesn’t have atomic instructions, then it should be a
single-processor machine (a multi-processor machine without atomic
operations should be considered unusable), so you just need to worry
about threading.> Date: Fri, 14 Jan 2011 08:12:31 -0800 (PST)

From: Scott Smith
To: SDL Development List
Subject: Re: [SDL] SDL Atomic operations