Revision 46d62fac

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;
b/qemu-common.h
288 288

  
289 289
/* Unblock cpu */
290 290
void qemu_cpu_kick(void *env);
291
void qemu_cpu_kick_self(void);
291 292
int qemu_cpu_self(void *env);
292 293

  
293 294
/* work queue */

Also available in: Unified diff