a1635fc Ticket: 48341 - deadlock on connection mutex

Authored and Committed by lkrispen 8 years ago
    Ticket: 48341 - deadlock on connection mutex
    
    If  thread is blocked in connection_read_operation() it holds the connection mutex
    and the main thread iterating through the connection table is also blocked.
    
    But if the main thread would get the mutex it would just detect that the connection has still the
    C_gettingber flag set and immediately release the lock.
    
    The check if c_gettingber == 0 can be done without holding the mutex and so the deadlock
    can be avoided
    
    Reviewed by Rich, Thanks
    
        
file modified
+3 -0