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 26, 2024
1 parent da40622 commit 48bc4e9
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,7 +3,7 @@
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

echo "Copying Cargo.lock ..."
cp "$AX_ROOT/Cargo.lock" Cargo.lock
Expand Down

0 comments on commit 48bc4e9

Please sign in to comment.