ofed libs: prevent double initialization of critical section
authorshefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 26 Aug 2009 16:44:24 +0000 (16:44 +0000)
committershefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 26 Aug 2009 16:44:24 +0000 (16:44 +0000)
commit02ab3e4c3171369827ce9511a4e6d5cf3904dabc
treea1e69578e08177f3d71c6d24b5838683701e0ebe
parent0925e04551f3d71c209996822ff345289494392a
ofed libs: prevent double initialization of critical section

DllMain is called multiple times for a given process.  Prevent double
initialization of critical sections by only initializing it during process
attach.  This avoids corrupting the critical section while it may be in use.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@2382 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
ulp/libibverbs/src/ibv_main.cpp
ulp/librdmacm/src/cma_main.cpp