]> Dogcows Code - chaz/yoink/blobdiff - src/moof/socket.hh
pch support
[chaz/yoink] / src / moof / socket.hh
index c592fdbfb097dd4488d2590a94c8ce267b9aadcf..a7d02f92e8be64000d802c0bae7237e6ff7ec493 100644 (file)
 #ifndef _MOOF_SOCKET_HH_
 #define _MOOF_SOCKET_HH_
 
-/**
- * \file socket.hh
- * Network-related classes, including a reinterpreted sockets API.
- */
-
 #include <algorithm>
 #include <cstring>
 #include <iostream>
@@ -44,7 +39,6 @@
 #include <moof/packet.hh>
 #include <moof/thread.hh>
 
-
 #ifndef AI_ADDRCONFIG
 #define AI_ADDRCONFIG 0
 #endif
 #endif
 
 
+/**
+ * \file socket.hh
+ * Network-related classes, including a reinterpreted sockets API.
+ */
+
 namespace moof {
 
 
@@ -1002,7 +1001,7 @@ public:
 
        void socket(moof::socket sock)
        {
-               mutex::scoped_lock lock(mutex_);
+               MOOF_MUTEX_LOCK(mutex_);
                socket_ = sock;
        }
 
@@ -1046,7 +1045,8 @@ private:
 
        moof::socket                    socket_;
        std::vector<function>   protocols_;
-       mutex                                   mutex_;
+
+       MOOF_DECLARE_MUTEX(mutex_);
 };
 
 
This page took 0.01942 seconds and 4 git commands to generate.