rwlock Read-write lock object to be initialized. attr Read-write lock attributes object that defines the characteristics of the read-write lock to be initialized.