Lely core libraries 2.3.4
|
This file is part of the I/O library; it exposes the abstract signal handler functions. More...
Go to the source code of this file.
Data Structures | |
struct | io_sigset_async_wait |
Functions | |
ev_future_t * | io_sigset_async_wait (io_sigset_t *sigset, ev_exec_t *exec, struct io_sigset_wait **pwait) |
Submits an asynchronous wait operation to a signal handler and creates a future which becomes ready once the wait operation completes (or is canceled). More... | |
struct io_sigset_wait * | io_sigset_wait_from_task (struct ev_task *task) |
Obtains a pointer to a signal wait operation from a pointer to its completion task. | |
This file is part of the I/O library; it exposes the abstract signal handler functions.
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 sigset.c.
ev_future_t * io_sigset_async_wait | ( | io_sigset_t * | sigset, |
ev_exec_t * | exec, | ||
struct io_sigset_wait ** | pwait | ||
) |
Submits an asynchronous wait operation to a signal handler and creates a future which becomes ready once the wait operation completes (or is canceled).
The result of the future is an int
containing the signal number, or 0 if the wait operation was canceled.
sigset | a pointer to a signal handler. |
exec | a pointer to the executor used to execute the completion function of the wait operation. If NULL, the default executor of the signal handler is used. |
pwait | the address at which to store a pointer to the wait operation (can be NULL). |