server_rwlock_w2rlock()

int server_rwlock_w2rlock(server_rwlock_t *rwlock);

This function atomically converts a held "write lock" to a "read lock".

Returns 0 on error 1 on success

Similar to server_rwlock_r2wlock(), this function must be called with the "write lock" held.

Since the "write lock" is already held, this function should not be expected to potentially block for a significant period, unlike server_rwlock_r2wlock().



2007-12-06