-
-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated the visibility of ProcStack's fields, renamed TaskLayout into…
… ProcLayout, added the "cancel" and "stack" methods to RecoverableHandle and made its inner ProcHandle private, made ProcFutureExt and CatchUnwind private and fixed a few typos and formatting issues.
- Loading branch information
Showing
11 changed files
with
258 additions
and
249 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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
use std::alloc::Layout; | ||
|
||
#[derive(Clone, Copy)] | ||
pub(crate) struct TaskLayout { | ||
pub(crate) struct ProcLayout { | ||
/// Memory layout of the whole proc. | ||
pub(crate) layout: Layout, | ||
|
||
/// Offset into the proc at which the stack is stored. | ||
pub(crate) offset_t: usize, | ||
pub(crate) offset_stack: usize, | ||
|
||
/// Offset into the proc at which the schedule function is stored. | ||
pub(crate) offset_s: usize, | ||
pub(crate) offset_schedule: usize, | ||
|
||
/// Offset into the proc at which the future is stored. | ||
pub(crate) offset_f: usize, | ||
pub(crate) offset_future: usize, | ||
|
||
/// Offset into the proc at which the output is stored. | ||
pub(crate) offset_r: usize, | ||
pub(crate) offset_output: usize, | ||
} |
Oops, something went wrong.