Changeset 9bde0d5 in mainline for uspace/app
- Timestamp:
- 2018-07-18T19:56:43Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 42f5860
- Parents:
- 40abf56a
- git-author:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-07-18 19:47:28)
- git-committer:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-07-18 19:56:43)
- File:
-
- 1 edited
-
uspace/app/rcubench/rcubench.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/rcubench/rcubench.c
r40abf56a r9bde0d5 59 59 size_t iters; 60 60 size_t nthreads; 61 futex_t done_threads; 62 63 futex_t bench_fut; 61 fibril_semaphore_t done_threads; 64 62 } bench_t; 65 63 … … 111 109 112 110 /* Signal another thread completed. */ 113 f utex_up(&bench->done_threads);111 fibril_semaphore_up(&bench->done_threads); 114 112 return EOK; 115 113 } … … 147 145 /* Wait for threads to complete. */ 148 146 for (size_t k = 0; k < bench->nthreads; ++k) { 149 f utex_down(&bench->done_threads);147 fibril_semaphore_down(&bench->done_threads); 150 148 } 151 149 } … … 202 200 } 203 201 204 futex_initialize(&bench->bench_fut, 1);205 206 202 if (0 == str_cmp(argv[1], "sys-futex")) { 207 203 bench->func = kernel_futex_bench; … … 247 243 bench_t bench; 248 244 249 f utex_initialize(&bench.done_threads, 0);245 fibril_semaphore_initialize(&bench.done_threads, 0); 250 246 251 247 if (!parse_cmd_line(argc, argv, &bench, &err)) {
Note:
See TracChangeset
for help on using the changeset viewer.
