added read write lock interface declare.