|
Size: 572
Comment: update content - remove acl
|
← Revision 3 as of 2011-02-02 18:32:36 ⇥
Size: 820
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().
