[ofa-general] Re: Is ibv_get_async_event() a blocking call ?
Steve Wise
swise at opengridcomputing.com
Fri Mar 2 08:56:25 PST 2007
On Fri, 2007-03-02 at 16:32 +0000, Tang, Changqing wrote:
>
> HI,
> I did not realize that ibv_get_async_event() is a blocking call,
> it forces me to call it in another thread. But if I don't want to use
> thread in my application, how do I use this function ?
>
> Thanks.
>
> --CQ
You can select() or poll() on the async file descriptor for the QP.
Then you only call ibv_get_async_event() when poll/select indicates
there is something to read.
>
>
> > -----Original Message-----
> > From: general-bounces at lists.openfabrics.org
> > [mailto:general-bounces at lists.openfabrics.org] On Behalf Of Steve Wise
> > Sent: Friday, March 02, 2007 8:17 AM
> > To: Sean Hefty
> > Cc: General at lists.openfabrics.org
> > Subject: RE: [ofa-general] librdmacm build failure
> >
> > On Thu, 2007-03-01 at 16:02 -0800, Sean Hefty wrote:
> > > Can you try this patch and see if it works for you?
> >
> > works...thanks.
> >
> >
> >
> > > ---
> > > diff --git a/Makefile.am b/Makefile.am index 57dc0b3..2eb95c6 100644
> > > --- a/Makefile.am
> > > +++ b/Makefile.am
> > > @@ -6,7 +6,11 @@ AM_CFLAGS = -g -Wall -D_GNU_SOURCE
> > >
> > > src_librdmacm_la_CFLAGS = $(AM_CFLAGS)
> > >
> > > -librdmacm_version_script = @LIBRDMACM_VERSION_SCRIPT@
> > > +if HAVE_LD_VERSION_SCRIPT
> > > + librdmacm_version_script =
> > > +-Wl,--version-script=$(srcdir)/src/librdmacm.map
> > > +else
> > > + librdmacm_version_script =
> > > +endif
> > >
> > > src_librdmacm_la_SOURCES = src/cma.c
> > > src_librdmacm_la_LDFLAGS = -version-info 1 -export-dynamic \
> > >
> >
> > _______________________________________________
> > general mailing list
> > general at lists.openfabrics.org
> > http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general
> >
> > To unsubscribe, please visit
> > http://openib.org/mailman/listinfo/openib-general
> >
More information about the general
mailing list