Lely core libraries  2.3.4
timer.hpp File Reference
#include <lely/ev/future.hpp>
#include <lely/io2/dev.hpp>
#include <lely/io2/clock.hpp>
#include <lely/io2/timer.h>
#include <utility>
Include dependency graph for timer.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::TimerWaitWrapper< F >
 
class  lely::io::TimerWait
 A wait operation suitable for use with an I/O timer. More...
 
class  lely::io::TimerBase
 A reference to an abstract timer. More...
 

Functions

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

Detailed Description

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

See also
lely/io2/timer.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 timer.hpp.

Function Documentation

◆ make_timer_wait_wrapper()

template<class F >
typename ::std::enable_if< compat::is_invocable<F, int, ::std::error_code>::value, detail::TimerWaitWrapper<F>*>::type lely::io::make_timer_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 a timer.

Definition at line 75 of file timer.hpp.