Thread id was being passed as a pointer
Merge pull request #32 from rcefala/fix-thread-pinning-bug

Thread id was being passed as a pointer