Lightweight Parallel Foundations
1.0.1-alpha 2023-06-26T11:02:34Z
A high performance and model-compliant communication layer
home
yzelman
Documents
lpf
include
lpf
pthread.h
Go to the documentation of this file.
1
2
/*
3
* Copyright 2021 Huawei Technologies Co., Ltd.
4
*
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
* you may not use this file except in compliance with the License.
7
* You may obtain a copy of the License at
8
*
9
* http://www.apache.org/licenses/LICENSE-2.0
10
*
11
* Unless required by applicable law or agreed to in writing, software
12
* distributed under the License is distributed on an "AS IS" BASIS,
13
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
* See the License for the specific language governing permissions and
15
* limitations under the License.
16
*/
17
18
#ifndef LPFLIB_PTHREAD_H
19
#define LPFLIB_PTHREAD_H
20
21
#include "
lpf/core.h
"
22
23
#ifdef __cplusplus
24
extern
"C"
{
25
#endif
26
61
extern
_LPFLIB_API
62
lpf_err_t
lpf_pthread_initialize
(
lpf_pid_t
pid,
lpf_pid_t
nprocs,
63
lpf_init_t
* init );
64
65
/* Releases all resources associated with a #lpf_init_t object that was created
66
* by lpf_pthread_initialize(). This function must be called collectively by
67
* all threads that took part in the initialization.
68
*
69
* \param[in] init The #lpf_init_t object that was created through
70
* lpf_pthread_initialize().
71
*
72
* \returns #LPF_SUCCESS
73
* when all resource were successfully released.
74
*
75
* \returns #LPF_ERR_FATAL
76
* when the system encountered an unrecoverable error.
77
*/
78
extern
_LPFLIB_API
79
lpf_err_t
lpf_pthread_finalize
(
lpf_init_t
init );
80
88
#ifdef __cplusplus
89
}
90
#endif
91
92
93
#endif
core.h
lpf_init_t
typedef lpf_init_t
Definition:
core.h:919
lpf_pid_t
typedef lpf_pid_t
Definition:
core.h:786
lpf_err_t
typedef lpf_err_t
Definition:
core.h:871
lpf_pthread_finalize
lpf_err_t lpf_pthread_finalize(lpf_init_t init)
lpf_pthread_initialize
lpf_err_t lpf_pthread_initialize(lpf_pid_t pid, lpf_pid_t nprocs, lpf_init_t *init)
Generated by
1.9.6