diff options
author | 2015-06-22 14:17:34 -0700 | |
---|---|---|
committer | 2015-06-23 01:01:03 +0200 | |
commit | a14ebbbe401c7ba9992816d454d711b1591704ee (patch) | |
tree | 5ef661907d49050e4fd524ce75d02e163085cdc4 /src/core/iomgr/pollset_windows.h | |
parent | 8222b19eb14273df8124cb5f46f629836e72f6ad (diff) |
Fixing Windows port after the removal of the backup poller.
With the backup poller gone, the caller of grpc_pollset_work is expecting it to sleep. Aligning the behavior of the Windows port with the behavior of the Posix port.
Diffstat (limited to 'src/core/iomgr/pollset_windows.h')
-rw-r--r-- | src/core/iomgr/pollset_windows.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/core/iomgr/pollset_windows.h b/src/core/iomgr/pollset_windows.h index cbbd9efdd1..b4aec1b809 100644 --- a/src/core/iomgr/pollset_windows.h +++ b/src/core/iomgr/pollset_windows.h @@ -41,10 +41,12 @@ /* There isn't really any such thing as a pollset under Windows, due to the nature of the IO completion ports. A Windows "pollset" is merely a mutex - and a condition variable, as this is the minimal set of features we need - implemented for the rest of grpc. But we won't use them directly. */ + and a condition variable, used to synchronize with the IOCP. */ -typedef struct grpc_pollset { gpr_mu mu; } grpc_pollset; +typedef struct grpc_pollset { + gpr_mu mu; + gpr_cv cv; +} grpc_pollset; #define GRPC_POLLSET_MU(pollset) (&(pollset)->mu) |