-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rt: use optional non-zero value for task
owner_id
(#5876)
We switch to using a `NonZeroU64` for the `id` field for `OwnedTasks` and `LocalOwnedTasks` lists. This allows the task header to contain an `Option<NonZeroU64>` instead of a `u64` with a special meaning for 0. The size in memory will be the same thanks to Rust's niche optimization, but this solution is clearer in its intent. Co-authored-by: Alice Ryhl <[email protected]>
- Loading branch information
Showing
2 changed files
with
25 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters