[common] fix framebuffer_prepare to use atomic_store

This commit is contained in:
Geoffrey McRae committed 2020-04-12 13:16:55 +10:00
1 parent 1222fd40b7
commit dbd7db7787
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1 +1 @@
B1-165-gb5f4c639fd+1
B1-166-g1222fd40b7+1
+1 -1
View File
@@ -95,7 +95,7 @@ bool framebuffer_read_fn(const FrameBuffer * frame, FrameBufferReadFn fn, size_t
*/
void framebuffer_prepare(FrameBuffer * frame)
{
frame->wp = 0;
atomic_store(&frame->wp, 0);
}
bool framebuffer_write(FrameBuffer * frame, const void * src, size_t size)