|
| From: | Richard Henderson |
| Subject: | Re: [PATCH v4 11/13] accel/tcg: Add rr_destroy_vcpu_thread_precheck() |
| Date: | Wed, 23 Mar 2022 15:42:09 -0700 |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 |
On 3/23/22 10:17, Philippe Mathieu-Daudé wrote:
+bool rr_destroy_vcpu_thread_precheck(CPUState *cpu)
+{
+ if (single_tcg_cpu_thread) {
+ single_tcg_cpu_thread = NULL;
+ return true;
+ }
+ return false;
+}
This would become
void rr_destroy_vcpu_thread(CPUState *cpu)
{
if (single_tcg_cpu_thread) {
g_free(single_tcg_cpu_thread);
g_free(single_tcg_halt_cond);
single_tcg_cpu_thread = NULL;
single_tcg_halt_cond = NULL;
}
}
r~
| [Prev in Thread] | Current Thread | [Next in Thread] |