25 #ifndef CGU_IO_WATCH_H
26 #define CGU_IO_WATCH_H
179 guint
start_iowatch(
int fd,
const Callback::CallbackArg<bool&>* cb,
180 GIOCondition io_condition, gint priority = G_PRIORITY_DEFAULT,
181 GMainContext* context = 0);
226 guint
start_iowatch(
int fd,
const Callback::CallbackArg<bool&>* cb, Releaser& r,
227 GIOCondition io_condition, gint priority = G_PRIORITY_DEFAULT,
228 GMainContext* context = 0);
272 guint
start_iowatch(
int fd,
const Callback::CallbackArg<GIOCondition, bool&>* cb,
273 GIOCondition io_condition, gint priority = G_PRIORITY_DEFAULT,
274 GMainContext* context = 0);
322 guint
start_iowatch(
int fd,
const Callback::CallbackArg<GIOCondition, bool&>* cb,
323 Releaser& r, GIOCondition io_condition, gint priority = G_PRIORITY_DEFAULT,
324 GMainContext* context = 0);
379 class =
typename std::enable_if<!std::is_convertible<typename std::remove_reference<F>::type,
380 const Callback::CallbackArg<GIOCondition, bool&>*>::value
381 && !std::is_convertible<typename std::remove_reference<F>::type,
382 const Callback::CallbackArg<bool&>*>::value>::type>
384 GIOCondition io_condition, gint priority = G_PRIORITY_DEFAULT,
385 GMainContext* context = 0) {
386 return start_iowatch(fd, Callback::lambda<GIOCondition, bool&>(std::forward<F>(func)),
387 io_condition, priority,
448 class =
typename std::enable_if<!std::is_convertible<typename std::remove_reference<F>::type,
449 const Callback::CallbackArg<GIOCondition, bool&>*>::value
450 && !std::is_convertible<typename std::remove_reference<F>::type,
451 const Callback::CallbackArg<bool&>*>::value>::type>
453 GIOCondition io_condition, gint priority = G_PRIORITY_DEFAULT,
454 GMainContext* context = 0) {
455 return start_iowatch(fd, Callback::lambda<GIOCondition, bool&>(std::forward<F>(func)), r,
456 io_condition, priority,