Improve thread aborting mechanism (#10490)

Call pseudo-virtual operator=(thread_state) of thread context.
This commit is contained in:
Eladash 2021-06-27 11:43:48 +03:00 committed by GitHub
parent 58847fa2ca
commit 0aed00a758
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 31 additions and 44 deletions

View file

@ -139,6 +139,7 @@ public:
u32* get_pc2(); // Last PC before stepping for the debugger (may be null)
void notify();
cpu_thread& operator=(thread_state);
public:
// Thread stats for external observation
@ -263,9 +264,6 @@ public:
}
}
// Stop all threads with cpu_flag::exit
static void stop_all() noexcept;
// Cleanup thread counting information
static void cleanup() noexcept;