The lock - for - write operation is similar .
Slightly different ( inputs are the same as for lock - for - read ) :
The lock - for - write operation is similar , but slightly different ( inputs are the same as for lock - for - read ) :