Wiki Page Content

Differences between revisions 2 and 3
Revision 2 as of 2011-02-01 20:47:14
Size: 572
Editor: SheenaSmith
Comment: update content - remove acl
Revision 3 as of 2011-02-02 18:32:36
Size: 820
Editor: SheenaSmith
Comment: update content - w/ Sam; remove draft
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
||<tablewidth="100%" style="color: #FF0000;" :> DRAFT||
Line 21: Line 20:
''You can add useful comments here'' This function only prevents the compiler from reordering reads and writes, it does not prevent the CPU from reordering reads and writes. However, all of the atomic operations that modify memory are full memory barriers.

This function is used in [[SDL_AtomicGet]]() and [[SDL_AtomicGetPtr]]().
Line 24: Line 25:
 .[[SDL_AtomicGet]]
 .[[SDL_AtomicGetPtr]]

SDL_CompilerBarrier

Use this function to prevent the compiler from reordering reads and writes to globally visible variables across the call.

Syntax

void SDL_CompilerBarrier(void)

Code Examples

You can add your code example here

Remarks

This function only prevents the compiler from reordering reads and writes, it does not prevent the CPU from reordering reads and writes. However, all of the atomic operations that modify memory are full memory barriers.

This function is used in SDL_AtomicGet() and SDL_AtomicGetPtr().


CategoryAPI, CategoryAtomic

None: SDL_CompilerBarrier (last edited 2011-02-02 18:32:36 by SheenaSmith)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit