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