Use C++11 threading for hsEvent, and clean up the API a bit
Simplify plDispatch mutexes a bit
Move the old IPC-based semaphore to hsGlobalSemaphore, and provide a
"normal" (inter-thread only) semaphore class.
Clean up hsReaderWriterLock
Reintroduce (and enforce use of) hsLockFor{Reading,Writing}
Merge pull request #443 from zrax/cxx11_synch

C++11 synchronization primitives
Replace hsSleep with std::thread::sleep_for
Convert hsThread to a std::thread implementation
Merge remote-tracking branch 'vincent/master' into cxx11_threading_plus
Add a proper binary semaphore type
Fix compile errors due to incompatible changes
Also replace hsCritSect (CCritSect) and CRITICAL_SECTION with std::mutex
Update the login dialog status message thread to std::thread
Get rid of the return value from hsThread::Run() -- it was useless anyway
Fix a few miscellaneous issues
Fix some coverity warnings
doxygen documentation
remove listen functions from pnAsyncCore
change AsyncSocket::EnableNagling direct setsockopt call to plTcpSocket::SetNoDelay()
Move initialisation of AsyncSocket structures in their constructor.