Lely core libraries 2.3.4
tqueue.hpp File Reference

This header file is part of the I/O library; it contains the C++ interface for the timer queue. More...

#include <lely/io2/timer.hpp>
#include <lely/io2/tqueue.h>
#include <utility>
Include dependency graph for tqueue.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  lely::io::detail::TimerQueueWaitWrapper< F >
 
class  lely::io::TimerQueueWait
 A wait operation suitable for use with a timerqueue. More...
 
class  lely::io::TimerQueue
 A timer queue. This class is a wrapper around #io_tqueue_t*. More...
 

Functions

template<class F >
typename::std::enable_if< compat::is_invocable< F,::std::error_code >::value, detail::TimerQueueWaitWrapper< F > * >::type lely::io::make_timer_queue_wait_wrapper (ev_exec_t *exec, F &&f)
 Creates a wait operation with a completion task.
 

Detailed Description

This header file is part of the I/O library; it contains the C++ interface for the timer queue.

See also
lely/io2/tqueue.h
Author
J. S. Seldenthuis jseld.nosp@m.enth.nosp@m.uis@l.nosp@m.ely..nosp@m.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file tqueue.hpp.

Function Documentation

◆ make_timer_queue_wait_wrapper()

template<class F >
typename::std::enable_if< compat::is_invocable< F,::std::error_code >::value, detail::TimerQueueWaitWrapper< F > * >::type lely::io::make_timer_queue_wait_wrapper ( ev_exec_t exec,
F &&  f 
)
inline

Creates a wait operation with a completion task.

The operation deletes itself after it is completed, so it MUST NOT be deleted once it is submitted to an timer.

Definition at line 73 of file tqueue.hpp.