Changes in kernel/test/mm/falloc2.c [11b285d:e3306d04] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/mm/falloc2.c
r11b285d re3306d04 117 117 const char *test_falloc2(void) 118 118 { 119 atomic_s et(&thread_count, THREADS);120 atomic_s et(&thread_fail, 0);119 atomic_store(&thread_count, THREADS); 120 atomic_store(&thread_fail, 0); 121 121 122 122 for (unsigned int i = 0; i < THREADS; i++) { … … 130 130 } 131 131 132 while (atomic_ get(&thread_count) > 0) {133 TPRINTF("Threads left: % " PRIua "\n",134 atomic_ get(&thread_count));132 while (atomic_load(&thread_count) > 0) { 133 TPRINTF("Threads left: %zu\n", 134 atomic_load(&thread_count)); 135 135 thread_sleep(1); 136 136 } 137 137 138 if (atomic_ get(&thread_fail) == 0)138 if (atomic_load(&thread_fail) == 0) 139 139 return NULL; 140 140
Note:
See TracChangeset
for help on using the changeset viewer.