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 - Atomic integer functions
Summary: Atomic integer functions
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: main (show other bugs)
Version: HG 2.0
Hardware: All All
: P2 enhancement
Assignee: Bob Pendleton
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-26 08:06 UTC by bile
Modified: 2009-10-12 11:26 UTC (History)
0 users

See Also:


Attachments
initial SDL_atomic patch (32.29 KB, patch)
2009-07-14 08:46 UTC, bile
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!