]> git.sesse.net Git - cubemap/blobdiff - thread.h
Use nullptr instead of NULL everywhere.
[cubemap] / thread.h
index 12aa133d82f77781e6de0b3273e8dc0128232d76..09e2754dd4760ca598f25e145ec250be0473ffcc 100644 (file)
--- a/thread.h
+++ b/thread.h
@@ -32,13 +32,14 @@ protected:
        // the file descriptor.
        //
        // If fd is -1, wait until a wakeup or timeout.
-       // if timeout_ts is NULL, there is no timeout.
+       // if timeout_ts is nullptr, there is no timeout.
        bool wait_for_activity(int fd, short events, const timespec *timeout_ts);
 
        // Wait until a wakeup.
        void wait_for_wakeup(const timespec *timeout_ts) { wait_for_activity(-1, 0, timeout_ts); }
 
-       // Make wait_for_activity() return.
+       // Make wait_for_activity() return. Note that this is a relatively expensive
+       // operation.
        void wakeup();
 
        bool should_stop();