From dcaef2a1b02e6e887c288d1af95b04cdc1ef8cf6 Mon Sep 17 00:00:00 2001 From: shefty Date: Tue, 7 Apr 2009 20:55:45 +0000 Subject: [PATCH] librdmacm/cmatose: suspend thread when polling for completions Prevent starvation of other threads. Signed-off-by: Sean Hefty git-svn-id: svn://openib.tc.cornell.edu/gen1@2085 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86 --- branches/winverbs/ulp/librdmacm/examples/cmatose/cmatose.c | 1 + 1 file changed, 1 insertion(+) diff --git a/branches/winverbs/ulp/librdmacm/examples/cmatose/cmatose.c b/branches/winverbs/ulp/librdmacm/examples/cmatose/cmatose.c index b9a8232d..c7d89815 100644 --- a/branches/winverbs/ulp/librdmacm/examples/cmatose/cmatose.c +++ b/branches/winverbs/ulp/librdmacm/examples/cmatose/cmatose.c @@ -417,6 +417,7 @@ static int poll_cqs(enum CQ_INDEX index) printf("cmatose: failed polling CQ: 0x%x\n", ret); return ret; } + Sleep(0); } } return 0; -- 2.46.0