.\" Automatically generated by Pandoc 2.17.1.1 .\" .TH "RUNTIME_NEW" "3" "2022-09-04" "MINIASYNC - miniasync version 0.2.1" "MINIASYNC Programmer's Manual" .hy .\" SPDX-License-Identifier: BSD-3-Clause .\" Copyright 2020-2022, Intel Corporation .SH NAME .PP \f[B]runtime_new\f[R](), \f[B]runtime_delete\f[R]() - allocate or free runtime structure .SH SYNOPSIS .IP .nf \f[C] #include struct runtime; struct runtime *runtime_new(void); void runtime_delete(struct runtime *runtime); \f[R] .fi .PP For general description of runtime API, see \f[B]miniasync_runtime\f[R](7). .SH DESCRIPTION .PP The \f[B]runtime_new\f[R]() function allocates and initializes a new runtime structure. Runtime can be used for optimized future polling. .PP The \f[B]runtime_delete\f[R]() function frees and finalizes the runtime structure pointed by \f[I]runtime\f[R]. .SS RETURN VALUE .PP The \f[B]runtime_new\f[R]() function returns a pointer to new \f[I]struct runtime\f[R] structure or a \f[I]NULL\f[R] if the allocation or initialization of \f[I]struct runtime\f[R] failed. .PP The \f[B]runtime_delete\f[R]() function does not return any value. .SH SEE ALSO .PP \f[B]miniasync\f[R](7), \f[B]miniasync_runtime\f[R](3) and \f[B]\f[R]