Skip to content

Implement ql_syscall_sched_yield#1237

Merged
xwings merged 1 commit intoqilingframework:devfrom
vhertz:sched_yield
Oct 6, 2022
Merged

Implement ql_syscall_sched_yield#1237
xwings merged 1 commit intoqilingframework:devfrom
vhertz:sched_yield

Conversation

@vhertz
Copy link
Contributor

@vhertz vhertz commented Oct 1, 2022

Checklist

Which kind of PR do you create?

  • This PR only contains minor fixes.
  • This PR contains major feature update.
  • This PR introduces a new function/api for Qiling Framework.

Coding convention?

  • The new code conforms to Qiling Framework naming convention.
  • The imports are arranged properly.
  • Essential comments are added.
  • The reference of the new code is pointed out.

Extra tests?

  • No extra tests are needed for this PR.
  • I have added enough tests for this PR.
  • Tests will be added after some discussion and review.

Changelog?

  • This PR doesn't need to update Changelog.
  • Changelog will be updated after some proper review.
  • Changelog has been updated in my PR.

Target branch?

  • The target branch is dev branch.

One last thing


I implemented ql_syscall_sched_yield() for POSIX's sched_yield(2). It stops the emulation of a current thread and sets _sched_yield() to its sched_cb.

Should I write a new test for this?

Copy link
Member

@wtdcode wtdcode left a comment

Choose a reason for hiding this comment

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

LGTM

@xwings
Copy link
Member

xwings commented Oct 6, 2022

If you have a binary and src for this will be awesome.

I will merge for now and and test can be in later.

@xwings xwings merged commit ebf6222 into qilingframework:dev Oct 6, 2022
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.

3 participants