tested threading and mutex
Merge pull request #3 from mholyoak/cpp11

tested threading and mutex