Revision 46d62fac cpus.c

b/cpus.c
529 529
    return;
530 530
}
531 531

  
532
void qemu_cpu_kick_self(void)
533
{
534
#ifndef _WIN32
535
    assert(cpu_single_env);
536

  
537
    raise(SIG_IPI);
538
#else
539
    abort();
540
#endif
541
}
542

  
532 543
void qemu_notify_event(void)
533 544
{
534 545
    CPUState *env = cpu_single_env;
......
831 842
    }
832 843
}
833 844

  
845
void qemu_cpu_kick_self(void)
846
{
847
    assert(cpu_single_env);
848

  
849
    if (!cpu_single_env->thread_kicked) {
850
        qemu_thread_signal(cpu_single_env->thread, SIG_IPI);
851
        cpu_single_env->thread_kicked = true;
852
    }
853
}
854

  
834 855
int qemu_cpu_self(void *_env)
835 856
{
836 857
    CPUState *env = _env;

Also available in: Unified diff