Lely core libraries
2.3.4
|
#include "io.h"
#include "../timer.h"
#include <lely/io2/ctx.h>
#include <lely/io2/posix/poll.h>
#include <lely/io2/sys/clock.h>
#include <lely/io2/sys/timer.h>
#include <lely/util/util.h>
#include <assert.h>
#include <errno.h>
#include <limits.h>
#include <stdlib.h>
#include <pthread.h>
#include <sched.h>
#include <unistd.h>
#include <sys/timerfd.h>
Go to the source code of this file.
Data Structures | |
struct | io_timer_impl |
Functions | |
io_timer_t * | io_timer_create (io_poll_t *poll, ev_exec_t *exec, clockid_t clockid) |
Creates a new I/O system timer. More... | |
void | io_timer_destroy (io_timer_t *timer) |
Destroys an I/O system timer. More... | |
This file is part of the I/O library; it contains the I/O system timer implementation for Linux.
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.c.
io_timer_t* io_timer_create | ( | io_poll_t * | poll, |
ev_exec_t * | exec, | ||
clockid_t | clockid | ||
) |
Creates a new I/O system timer.
poll | a pointer to the I/O polling instance used to monitor timer events. |
exec | a pointer to the executor used to execute asynchronous tasks. |
clockid | the POSIX identifier of the clock to use (CLOCK_REALTIME or CLOCK_MONOTONIC ). |
void io_timer_destroy | ( | io_timer_t * | timer | ) |