Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
pthread_once.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2014 René Kijewski <rene.kijewski@fu-berlin.de>
3
*
4
* This file is subject to the terms and conditions of the GNU Lesser
5
* General Public License v2.1. See the file LICENSE in the top level
6
* directory for more details.
7
*/
8
17
#ifndef PTHREAD_ONCE_H
18
#define PTHREAD_ONCE_H
19
20
#ifdef __cplusplus
21
extern
"C"
{
22
#endif
23
29
typedef
struct
{
30
int
is_initialized
;
31
int
init_executed
;
32
}
pthread_once_t
;
33
40
#define PTHREAD_ONCE_INIT { 1, 0 }
41
51
int
pthread_once
(
pthread_once_t
*once_control,
void
(*init_routine)(
void
));
52
53
#ifdef __cplusplus
54
}
55
#endif
56
57
#endif
/* PTHREAD_ONCE_H */
58
pthread_once
int pthread_once(pthread_once_t *once_control, void(*init_routine)(void))
Helper function that ensures that init_routine is called at once.
pthread_once_t
Datatype to supply to pthread_once().
Definition
pthread_once.h:29
pthread_once_t::is_initialized
int is_initialized
initialized
Definition
pthread_once.h:30
pthread_once_t::init_executed
int init_executed
init function executed
Definition
pthread_once.h:31
Generated on Fri Nov 15 2024 22:46:39 by
1.9.8