• Tim Wickberg's avatar
    Fix initialization for lock arrays. · f7da0636
    Tim Wickberg authored
    As pthread_rwlock_t is a struct, we cannot use this syntax
    to initialize all elements of the array to the same value
    as we would if these were any basic type.
    
    Instead, move the initialization to a dedicated loop to ensure
    all locks are initialized correctly.
    
    This does not seem to have caused any issues on Linux platforms,
    but macOS at least does notice this mistake.
    
    Bug 6319.
    f7da0636
To find the state of this project's repository at the time of any of these versions, check out the tags.