Lely core libraries  2.3.4
ctx.hpp File Reference

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

#include <lely/io2/ctx.h>
#include <lely/util/error.hpp>
#include <utility>
Include dependency graph for ctx.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::ContextBase
 A refence to an I/O context. This class is a wrapper around #io_ctx_t*. More...
 
class  lely::io::Context
 An I/O context. More...
 

Enumerations

enum class  lely::io::ForkEvent { prepare = IO_FORK_PREPARE , parent = IO_FORK_PARENT , child = IO_FORK_CHILD }
 The type of event generated by an I/O context before and after a process fork. More...
 

Detailed Description

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

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

Enumeration Type Documentation

◆ ForkEvent

enum lely::io::ForkEvent
strong

The type of event generated by an I/O context before and after a process fork.

Enumerator
prepare 

The event generated before the fork.

parent 

The event generated after the fork in the parent process.

child 

The event generated after the fork in the child process.

Definition at line 39 of file ctx.hpp.