Skip to content

Conversation

@zhanghe-vivo
Copy link
Contributor

signal process hasn't added, will rebase #238

@lawkai-vivo lawkai-vivo changed the title fix semantics of posix time function Fix semantics of posix time function Dec 22, 2025
@lawkai-vivo
Copy link
Contributor

Can you elaborate why do we need to invent a new POSIX timer in kernel rather than using soft timer?

@zhanghe-vivo
Copy link
Contributor Author

stub posix timers, preserve clock implement

@zhanghe-vivo
Copy link
Contributor Author

build_prs #240 vivoblueos/librs#22 vivoblueos/libc#5

@github-actions
Copy link

github-actions bot commented Jan 5, 2026

@github-actions
Copy link

github-actions bot commented Jan 5, 2026

❌ Job failed. Failed jobs: check_format (failure), build_and_check_boards (failure), see https://github.com/vivoblueos/kernel/actions/runs/20710231867.

@zhanghe-vivo
Copy link
Contributor Author

build_prs #240 vivoblueos/librs#22 vivoblueos/libc#5

@github-actions
Copy link

github-actions bot commented Jan 5, 2026

@github-actions
Copy link

github-actions bot commented Jan 5, 2026

❌ Job failed. Failed jobs: build_and_check_boards (failure), see https://github.com/vivoblueos/kernel/actions/runs/20710672760.

@zhanghe-vivo
Copy link
Contributor Author

build_prs #240 vivoblueos/librs#22 vivoblueos/libc#5

@github-actions
Copy link

github-actions bot commented Jan 5, 2026

@github-actions
Copy link

github-actions bot commented Jan 5, 2026

❌ Job failed. Failed jobs: build_and_check_boards (failure), see https://github.com/vivoblueos/kernel/actions/runs/20710835888.

@zhanghe-vivo
Copy link
Contributor Author

build_prs #240 vivoblueos/librs#22 vivoblueos/libc#5

@github-actions
Copy link

github-actions bot commented Jan 5, 2026

@github-actions
Copy link

github-actions bot commented Jan 5, 2026

❌ Job failed. Failed jobs: build_and_check_boards (failure), see https://github.com/vivoblueos/kernel/actions/runs/20711463695.

@zhanghe-vivo
Copy link
Contributor Author

build_prs #240 vivoblueos/librs#22 vivoblueos/libc#5

@github-actions
Copy link

github-actions bot commented Jan 5, 2026

@github-actions
Copy link

github-actions bot commented Jan 5, 2026

❌ Job failed. Failed jobs: build_and_check_boards (failure), see https://github.com/vivoblueos/kernel/actions/runs/20711707723.

@zhanghe-vivo
Copy link
Contributor Author

build_prs #240 vivoblueos/librs#22 vivoblueos/libc#5

@github-actions
Copy link

github-actions bot commented Jan 5, 2026

@github-actions
Copy link

github-actions bot commented Jan 5, 2026

✅ All jobs completed successfully, see https://github.com/vivoblueos/kernel/actions/runs/20712177870.

@zhanghe-vivo
Copy link
Contributor Author

build_prs #240 vivoblueos/librs#22 vivoblueos/libc#5

@github-actions
Copy link

github-actions bot commented Jan 5, 2026

@github-actions
Copy link

github-actions bot commented Jan 5, 2026

✅ All jobs completed successfully, see https://github.com/vivoblueos/kernel/actions/runs/20712502352.

@@ -0,0 +1,333 @@
// Copyright (c) 2025 vivo Mobile Communication Co., Ltd.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// Copyright (c) 2025 vivo Mobile Communication Co., Ltd.
// Copyright (c) 2026 vivo Mobile Communication Co., Ltd.

use crate::sync::spinlock::SpinLock;
static REALTIME_OFFSET_NS: SpinLock<i64> = SpinLock::new(0);

fn clear_itimerspec(dest: *mut itimerspec) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please avoid using raw pointers when using pure Rust is possible.


fn thread_cpu_cycles(thread: &Thread) -> u64 {
let mut total = thread.get_cycles();
if thread.state() == thread::RUNNING {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need this check?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants