obliteration icon indicating copy to clipboard operation
obliteration copied to clipboard

#603 Implement sys_nanosleep

Open mikusp opened this issue 1 year ago • 6 comments

I've included the Windows implementation, but I have no idea what am I doing there so there might be bugs.

This is not 100% correct with PS4, as it will always sleep the requested amount on both Windows and Linux - that should not be a problem though as libkernel functions would have restarted on EINTR anyway

mikusp avatar Feb 03 '24 23:02 mikusp

@mikusp Doesn't this sleep the thread running the kernel? We want to sleep the thread that's requesting that's making the syscall, don't we? EDIT: Actually, scratch that. Maybe it is correct.

SuchAFuriousDeath avatar Feb 04 '24 10:02 SuchAFuriousDeath

I believe nanosleep would sleep the calling thread, so should be correct

mikusp avatar Feb 07 '24 23:02 mikusp

I've rebased the branch and fixed the windows implementation so it compiles at least

mikusp avatar Feb 07 '24 23:02 mikusp

Updated now with the nanosleep function moved to the time module

mikusp avatar Feb 13 '24 20:02 mikusp

We are closing this PR due to no any activities in the last 30 days. Feel free to re-open it if you would like to continue working on this.

github-actions[bot] avatar Mar 28 '24 01:03 github-actions[bot]

We are closing this PR due to no any activities in the last 30 days. Feel free to re-open it if you would like to continue working on this.

github-actions[bot] avatar Apr 29 '24 01:04 github-actions[bot]

We are closing this PR due to no any activities in the last 30 days. Feel free to re-open it if you would like to continue working on this.

github-actions[bot] avatar May 31 '24 01:05 github-actions[bot]

We are closing this PR due to no any activities in the last 30 days. Feel free to re-open it if you would like to continue working on this.

github-actions[bot] avatar Jul 02 '24 01:07 github-actions[bot]

We are closing this PR due to no any activities in the last 30 days. Feel free to re-open it if you would like to continue working on this.

github-actions[bot] avatar Aug 03 '24 01:08 github-actions[bot]