Revision 691f5c7b

b/hw/qxl.c
1372 1372
    if ((old_pending & le_events) == le_events) {
1373 1373
        return;
1374 1374
    }
1375
    if (pthread_self() == d->main) {
1375
    if (qemu_thread_is_self(&d->main)) {
1376 1376
        qxl_update_irq(d);
1377 1377
    } else {
1378 1378
        if (write(d->pipe[1], d, 1) != 1) {
......
1391 1391
   fcntl(d->pipe[1], F_SETFL, O_NONBLOCK);
1392 1392
   fcntl(d->pipe[0], F_SETOWN, getpid());
1393 1393

  
1394
   d->main = pthread_self();
1394
   qemu_thread_get_self(&d->main);
1395 1395
   qemu_set_fd_handler(d->pipe[0], pipe_read, NULL, d);
1396 1396
}
1397 1397

  
b/hw/qxl.h
4 4
#include "hw.h"
5 5
#include "pci.h"
6 6
#include "vga_int.h"
7
#include "qemu-thread.h"
7 8

  
8 9
#include "ui/qemu-spice.h"
9 10
#include "ui/spice-display.h"
......
63 64
    QemuMutex          track_lock;
64 65

  
65 66
    /* thread signaling */
66
    pthread_t          main;
67
    QemuThread         main;
67 68
    int                pipe[2];
68 69

  
69 70
    /* ram pci bar */

Also available in: Unified diff