Utils/Daemon: Add warning when the scheduler has registered events at a fork()
[senf.git] / Scheduler / FdEvent.hh
index 75e3f52..d574351 100644 (file)
@@ -171,9 +171,15 @@ namespace scheduler {
         friend class detail::FileDispatcher;
     };
 
-}}
+    /** \brief Get file descriptor from handle object
 
-int retrieve_filehandle(int fd);
+        This function will query the \a handle for it's file descriptor. The real implementation
+        must be provided by a freestanding function \c retrieve_filehandle(Handle const & h) within
+        the namespace of \a Handle.
+     */
+    template <class Handle>
+    int get_descriptor(Handle const & handle);
+}}
 
 ///////////////////////////////hh.e////////////////////////////////////////
 #include "FdEvent.cci"