We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 646

Summary: Atomic integer functions
Product: SDL Reporter: bile
Component: mainAssignee: Bob Pendleton <bob>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: enhancement    
Priority: P2    
Version: HG 2.0   
Hardware: All   
OS: All   
Attachments: initial SDL_atomic patch

Description bile 2008-11-26 08:06:10 UTC
Over a year ago atomic integer functions were discussed and agreed would be a nice addition to 1.3. I threw together a patch which covered the main platforms I had some access to at the time.

http://landofbile.com/software/SDL_atomic.patch

I've not the time to check to see if it will apply cleanly currently. In the least the code can be used as a base.
Comment 1 Sam Lantinga 2009-02-16 21:23:33 UTC
Thanks!  I'm just waiting on a code release so I can include this in SDL 1.3.
Comment 2 bile 2009-07-14 08:46:20 UTC
Created attachment 339 [details]
initial SDL_atomic patch

The original link is broken. Here's an attachment for historical purposes.
Comment 3 Sam Lantinga 2009-10-10 12:39:56 UTC
Bob has implemented the atomic operations API.  Bob, can you review this patch and see if there's anything here that benefits us?

Thanks!
Comment 4 Sam Lantinga 2009-10-12 11:26:08 UTC
Bob actually used this as the basis for his work.  Thanks!