Diff for /qemu/os-win32.c between versions 1.1.1.2 and 1.1.1.3

version 1.1.1.2, 2018/04/24 18:34:06 version 1.1.1.3, 2018/04/24 18:56:23
Line 140  void os_host_main_loop_wait(int *timeout Line 140  void os_host_main_loop_wait(int *timeout
         int err;          int err;
         WaitObjects *w = &wait_objects;          WaitObjects *w = &wait_objects;
   
           qemu_mutex_unlock_iothread();
         ret = WaitForMultipleObjects(w->num, w->events, FALSE, *timeout);          ret = WaitForMultipleObjects(w->num, w->events, FALSE, *timeout);
           qemu_mutex_lock_iothread();
         if (WAIT_OBJECT_0 + 0 <= ret && ret <= WAIT_OBJECT_0 + w->num - 1) {          if (WAIT_OBJECT_0 + 0 <= ret && ret <= WAIT_OBJECT_0 + w->num - 1) {
             if (w->func[ret - WAIT_OBJECT_0])              if (w->func[ret - WAIT_OBJECT_0])
                 w->func[ret - WAIT_OBJECT_0](w->opaque[ret - WAIT_OBJECT_0]);                  w->func[ret - WAIT_OBJECT_0](w->opaque[ret - WAIT_OBJECT_0]);
Line 180  void os_setup_early_signal_handling(void Line 182  void os_setup_early_signal_handling(void
     /* Note: cpu_interrupt() is currently not SMP safe, so we force      /* Note: cpu_interrupt() is currently not SMP safe, so we force
        QEMU to run on a single CPU */         QEMU to run on a single CPU */
     HANDLE h;      HANDLE h;
     DWORD mask, smask;      DWORD_PTR mask, smask;
     int i;      int i;
   
     SetConsoleCtrlHandler(qemu_ctrl_handler, TRUE);      SetConsoleCtrlHandler(qemu_ctrl_handler, TRUE);
Line 256  int qemu_create_pidfile(const char *file Line 258  int qemu_create_pidfile(const char *file
     if (file == INVALID_HANDLE_VALUE) {      if (file == INVALID_HANDLE_VALUE) {
         return -1;          return -1;
     }      }
     len = snprintf(buffer, sizeof(buffer), "%ld\n", (long)getpid());      len = snprintf(buffer, sizeof(buffer), FMT_pid "\n", getpid());
     ret = WriteFileEx(file, (LPCVOID)buffer, (DWORD)len,      ret = WriteFileEx(file, (LPCVOID)buffer, (DWORD)len,
                       &overlap, NULL);                        &overlap, NULL);
     if (ret == 0) {      if (ret == 0) {
Line 264  int qemu_create_pidfile(const char *file Line 266  int qemu_create_pidfile(const char *file
     }      }
     return 0;      return 0;
 }  }
   
   int qemu_get_thread_id(void)
   {
       return GetCurrentThreadId();
   }

Removed from v.1.1.1.2  
changed lines
  Added in v.1.1.1.3


unix.superglobalmegacorp.com