refactory code.
Merge branch 'master' of github.com:tangxuehua/equeue