Skip to content

Commit

Permalink
[wip] test arceos-apps
Browse files Browse the repository at this point in the history
  • Loading branch information
hky1999 committed Dec 30, 2024
1 parent d2d1f0c commit 6942404
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions rust/task/affinity/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ fn main() {
assert_ne!(this_cpu_id(), cpu_id, "CPU affinity changes failed!");
thread::yield_now();
}
let _ = FINISHED_TASKS.fetch_add(1, Ordering::SeqCst);
let _ = FINISHED_TASKS.fetch_add(1, Ordering::Relaxed);
});
}

while FINISHED_TASKS.load(Ordering::SeqCst) < NUM_TASKS {
while FINISHED_TASKS.load(Ordering::Relaxed) < NUM_TASKS {
thread::yield_now();
}

Expand Down
2 changes: 1 addition & 1 deletion scripts/get_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
AX_ROOT=.arceos

test ! -d "$AX_ROOT" && echo "Cloning repositories ..." || true
test ! -d "$AX_ROOT" && git clone https://github.com/arceos-org/arceos "$AX_ROOT" --depth=1 || true
test ! -d "$AX_ROOT" && git clone -b axsync https://github.com/arceos-org/arceos "$AX_ROOT" --depth=1 || true

$(dirname $0)/set_ax_root.sh $AX_ROOT

0 comments on commit 6942404

Please sign in to comment.