cec: don't broadcast but wake one thread in CProtectedSocket::MarkReady()
[deb_libcec.git] / src / lib / platform / sockets / socket.h
index 9ef359679f1b0e48fb7634351d3f15cbbfe611d9..1d54a03ec22098f7c6a31fc9648f99d55b38c7c9 100644 (file)
 #include "../posix/os-socket.h"
 #endif
 
-/* Needed on Mac OS/X */
-#ifndef SOL_TCP
-#define SOL_TCP IPPROTO_TCP
-#endif
-
 // Common socket operations
 
 namespace PLATFORM
@@ -228,7 +223,7 @@ namespace PLATFORM
       CLockObject lock(m_mutex);
       if (m_iUseCount > 0)
         --m_iUseCount;
-      m_condition.Broadcast();
+      m_condition.Signal();
     }
 
     _Socket   *m_socket;