Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

task: fix some safety issues #616

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

msft-jlange
Copy link
Collaborator

Starting the scheduler is an unsafe operation because it relies on there not being a current task, which is a guarantee the compiler cannot make on its own.

Also, a function that returns a pointer is not necessarily unsafe. The operation of using the pointer is where the code becomes unsafe.

Starting the scheduler is an unsafe operation because it relies on there
not being a current task, which is a guarantee the compiler cannot make
on its own.

Also, a function that returns a pointer is not necessarily unsafe.  The
operation of using the pointer is where the code becomes unsafe.

Signed-off-by: Jon Lange <[email protected]>
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.

1 participant