Use Read-only lock, when publishes message
Merge pull request #1 from noxiouz/change_to_RWMutex

Use Read-only lock, when publishes message