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 
9 #pragma once
10 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
28 typedef struct {
32 
39 #define PTHREAD_ONCE_INIT { 1, 0 }
40 
50 int pthread_once(pthread_once_t *once_control, void (*init_routine)(void));
51 
52 #ifdef __cplusplus
53 }
54 #endif
55 
int pthread_once(pthread_once_t *once_control, void(*init_routine)(void))
Helper function that ensures that init_routine is called at once.
Datatype to supply to pthread_once().
Definition: pthread_once.h:28
int is_initialized
initialized
Definition: pthread_once.h:29
int init_executed
init function executed
Definition: pthread_once.h:30