Revision cc015e9a qemu-thread-posix.c

b/qemu-thread-posix.c
171 171
    pthread_sigmask(SIG_SETMASK, &oldset, NULL);
172 172
}
173 173

  
174
void qemu_thread_signal(QemuThread *thread, int sig)
175
{
176
    int err;
177

  
178
    err = pthread_kill(thread->thread, sig);
179
    if (err)
180
        error_exit(err, __func__);
181
}
182

  
183 174
void qemu_thread_get_self(QemuThread *thread)
184 175
{
185 176
    thread->thread = pthread_self();

Also available in: Unified diff