channel-win32.c (4459bf3866c380cc1e7cbb8771eee7b503d1163a) channel-win32.c (cb8d4c8f54b8271f642f02382eec29d468bb1c77)
1#include "qemu/osdep.h"
2#include <glib.h>
3#include <windows.h>
4#include <io.h>
5#include "qga/guest-agent-core.h"
6#include "qga/channel.h"
7
8typedef struct GAChannelReadState {

--- 63 unchanged lines hidden (view full) ---

72 if (GetLastError() == ERROR_IO_PENDING) {
73 rs->ov_pending = true;
74 } else {
75 new_events |= G_IO_ERR;
76 }
77 }
78
79out:
1#include "qemu/osdep.h"
2#include <glib.h>
3#include <windows.h>
4#include <io.h>
5#include "qga/guest-agent-core.h"
6#include "qga/channel.h"
7
8typedef struct GAChannelReadState {

--- 63 unchanged lines hidden (view full) ---

72 if (GetLastError() == ERROR_IO_PENDING) {
73 rs->ov_pending = true;
74 } else {
75 new_events |= G_IO_ERR;
76 }
77 }
78
79out:
80 /* dont block forever, iterate the main loop every once and a while */
80 /* don't block forever, iterate the main loop every once in a while */
81 *timeout_ms = 500;
82 /* if there's data in the read buffer, or another event is pending,
83 * skip polling and issue user cb.
84 */
85 if (rs->pending) {
86 new_events |= G_IO_IN;
87 }
88 c->pending_events |= new_events;

--- 269 unchanged lines hidden ---
81 *timeout_ms = 500;
82 /* if there's data in the read buffer, or another event is pending,
83 * skip polling and issue user cb.
84 */
85 if (rs->pending) {
86 new_events |= G_IO_IN;
87 }
88 c->pending_events |= new_events;

--- 269 unchanged lines hidden ---