source: rtems/cpukit/score/include/rtems/score/onceimpl.h @ 47b1e31

Last change on this file since 47b1e31 was 47b1e31, checked in by Sebastian Huber <sebastian.huber@…>, on Sep 19, 2017 at 12:10:33 PM

posix: Optimize pthread_once_t

Reduce size of pthread_once_t and make it zero-initialized.

Update #3142.

  • Property mode set to 100644
File size: 816 bytes
Line 
1/**
2 * @file
3 *
4 * @ingroup ScoreOnce
5 *
6 * @brief Once API
7 */
8
9/*
10 * Copyright (c) 2014 embedded brains GmbH.  All rights reserved.
11 *
12 *  embedded brains GmbH
13 *  Dornierstr. 4
14 *  82178 Puchheim
15 *  Germany
16 *  <rtems@embedded-brains.de>
17 *
18 * The license and distribution terms for this file may be
19 * found in the file LICENSE in this distribution or at
20 * http://www.rtems.org/license/LICENSE.
21 */
22
23#ifndef _RTEMS_ONCE_H
24#define _RTEMS_ONCE_H
25
26#ifdef __cplusplus
27extern "C" {
28#endif /* __cplusplus */
29
30/**
31 * @defgroup ScoreOnce Once Functions.
32 *
33 * @ingroup Score
34 *
35 * @brief The _Once() function for pthread_once() and rtems_gxx_once().
36 *
37 * @{
38 */
39
40int _Once( unsigned char *once_state, void (*init_routine)(void) );
41
42/** @} */
43
44#ifdef __cplusplus
45}
46#endif /* __cplusplus */
47
48#endif /* _RTEMS_ONCE_H */
Note: See TracBrowser for help on using the repository browser.