[Openib-windows] Re: Complib changes to support OpenSM in OpenIB
    Sean Hefty 
    sean.hefty at intel.com
       
    Fri Aug 26 11:03:24 PDT 2005
    
    
  
>get item from pool
>try something
>if failed, put item in pool
>
>If "try something" is a relatively quick operation, you'll get better
>performance taking the lock up front and releasing it after the failure test.
This is only true if failure is expected to occur frequently.  On the other
points though, I agree.  Typically clients of pools/lists are already holding
locks to synchronize other operations.
- Sean
    
    
More information about the ofw
mailing list