diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2025-08-14 03:43:16 +0300 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2025-08-14 03:43:16 +0300 |
| commit | d9322cdd83c46d1add0a3c8421e28ee878c29396 (patch) | |
| tree | db0dd91f24b9ae7af438f498a4f6200e04977599 /Software/Visual_Studio/Tango.Emulations | |
| parent | 61bc5d6672a0dd3c7fd0f8e1a95d5c037fb20cab (diff) | |
| download | Tango-d9322cdd83c46d1add0a3c8421e28ee878c29396.tar.gz Tango-d9322cdd83c46d1add0a3c8421e28ee878c29396.zip | |
Machine Operator Printing Operations Major Refactoring.
Revived Job Resume for X1/X4/PPC.
Diffstat (limited to 'Software/Visual_Studio/Tango.Emulations')
| -rw-r--r-- | Software/Visual_Studio/Tango.Emulations/Emulators/MachineEmulator.cs | 35 |
1 files changed, 29 insertions, 6 deletions
diff --git a/Software/Visual_Studio/Tango.Emulations/Emulators/MachineEmulator.cs b/Software/Visual_Studio/Tango.Emulations/Emulators/MachineEmulator.cs index 1bf2d3cb7..09f5ea2ac 100644 --- a/Software/Visual_Studio/Tango.Emulations/Emulators/MachineEmulator.cs +++ b/Software/Visual_Studio/Tango.Emulations/Emulators/MachineEmulator.cs @@ -326,6 +326,7 @@ namespace Tango.Emulations.Emulators public override Task Start() { + _current_job_resume_token = null; _isAfterReset = true; return base.Start(); } @@ -930,6 +931,10 @@ namespace Tango.Emulations.Emulators }, _current_job_resume_token); } } + else + { + LogManager.Log($"[Machine Enulator]: Job Progress: {progress}"); + } if (addedResume) { @@ -997,25 +1002,43 @@ namespace Tango.Emulations.Emulators if (_failJob) { - Transporter.SendResponse<JobResponse>(new JobResponse() + if (_current_job_resume_token == null) { + Transporter.SendResponse<JobResponse>(new JobResponse() + { - }, request.Container.Token, new TransportResponseConfig() { - ErrorCode = ErrorCode.JobThreadBreak, - ErrorMessage = "This is a message about a thread break from the emulator", - EventType = PMR.Diagnostics.EventType.ThreadBreak, - }); + }, request.Container.Token, new TransportResponseConfig() + { + ErrorCode = ErrorCode.JobThreadBreak, + ErrorMessage = "This is a message about a thread break from the emulator", + EventType = PMR.Diagnostics.EventType.ThreadBreak, + }); + } + else + { + Transporter.SendResponse<CurrentJobResponse>(new CurrentJobResponse() + { + + }, request.Container.Token, new TransportResponseConfig() + { + ErrorCode = ErrorCode.JobThreadBreak, + ErrorMessage = "This is a message about a thread break from the emulator", + EventType = PMR.Diagnostics.EventType.ThreadBreak, + }); + } break; } if (_cancelJob) { + _current_job_resume_token = null; break; } } if (_cancelJob) { + _current_job_resume_token = null; break; } } |
