mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-12-14 19:36:59 +00:00
misc: chore: Fix object creation in HLE project
This commit is contained in:
parent
f1fd5c9366
commit
beab133c8d
48 changed files with 194 additions and 194 deletions
|
|
@ -79,11 +79,11 @@ namespace Ryujinx.HLE.HOS.Applets.SoftwareKeyboard
|
|||
public void Reset(Action<float> action, int totalMilliseconds, int sleepMilliseconds)
|
||||
{
|
||||
// Create a dedicated cancel token for each task.
|
||||
TRef<bool> cancelled = new TRef<bool>(false);
|
||||
TRef<bool> cancelled = new(false);
|
||||
|
||||
Reset(new Thread(() =>
|
||||
{
|
||||
SleepSubstepData substepData = new SleepSubstepData(sleepMilliseconds);
|
||||
SleepSubstepData substepData = new(sleepMilliseconds);
|
||||
|
||||
int totalCount = totalMilliseconds / sleepMilliseconds;
|
||||
int totalRemainder = totalMilliseconds - totalCount * sleepMilliseconds;
|
||||
|
|
@ -126,11 +126,11 @@ namespace Ryujinx.HLE.HOS.Applets.SoftwareKeyboard
|
|||
public void Reset(Action action, int sleepMilliseconds)
|
||||
{
|
||||
// Create a dedicated cancel token for each task.
|
||||
TRef<bool> cancelled = new TRef<bool>(false);
|
||||
TRef<bool> cancelled = new(false);
|
||||
|
||||
Reset(new Thread(() =>
|
||||
{
|
||||
SleepSubstepData substepData = new SleepSubstepData(sleepMilliseconds);
|
||||
SleepSubstepData substepData = new(sleepMilliseconds);
|
||||
|
||||
while (!Volatile.Read(ref cancelled.Value))
|
||||
{
|
||||
|
|
@ -147,7 +147,7 @@ namespace Ryujinx.HLE.HOS.Applets.SoftwareKeyboard
|
|||
public void Reset(Action action)
|
||||
{
|
||||
// Create a dedicated cancel token for each task.
|
||||
TRef<bool> cancelled = new TRef<bool>(false);
|
||||
TRef<bool> cancelled = new(false);
|
||||
|
||||
Reset(new Thread(() =>
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue