Add missing doxygen for pthread funs and structs
pthread: fix spinlock
Merge pull request #1017 from Kijewski/issue-980

documentation: Add missing documentation for pthread functions and structures