Setting up PQueue to do proper locking by some minor refactoring
Merge pull request #6 from deckarep/master

Setting up PQueue to do proper locking by some minor refactoring