mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-23 03:06:52 -04:00
kern: build with -Wextra
This commit is contained in:
parent
d3014f6ed9
commit
73798cb812
32 changed files with 100 additions and 30 deletions
|
@ -86,6 +86,10 @@ namespace ams::kern {
|
|||
|
||||
/* Manager thread functions. */
|
||||
void DpcManagerNormalThreadFunction(uintptr_t arg) {
|
||||
/* Input argument goes unused. */
|
||||
MESOSPHERE_UNUSED(arg);
|
||||
|
||||
/* Forever wait and service requests. */
|
||||
while (true) {
|
||||
KDpcTask::WaitForRequest();
|
||||
KDpcTask::HandleRequest();
|
||||
|
@ -93,6 +97,10 @@ namespace ams::kern {
|
|||
}
|
||||
|
||||
void DpcManagerPreemptionThreadFunction(uintptr_t arg) {
|
||||
/* Input argument goes unused. */
|
||||
MESOSPHERE_UNUSED(arg);
|
||||
|
||||
/* Forever wait and service requests, rotating the scheduled queue every 10 ms. */
|
||||
s64 timeout = KHardwareTimer::GetTick() + DpcManagerTimeout;
|
||||
while (true) {
|
||||
if (KDpcTask::TimedWaitForRequest(timeout)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue