thread safe
Merge pull request #2 from swoole/master

thread safe