Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fc166af

Browse filesBrowse files
committed
Add test for __sync_synchronize() and emscripten_atomic_fence() codegen.
1 parent be476b4 commit fc166af
Copy full SHA for fc166af

1 file changed

+3Lines changed: 3 additions & 0 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎tests/pthread/test_pthread_atomics.cpp‎

Copy file name to clipboardExpand all lines: tests/pthread/test_pthread_atomics.cpp
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ int main()
150150

151151
int result = 0;
152152

153+
emscripten_atomic_fence();
154+
__sync_synchronize();
155+
153156
if (!emscripten_has_threading_support())
154157
{
155158
#ifdef REPORT_RESULT

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.