summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/score
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/include/rtems/score')
-rw-r--r--cpukit/include/rtems/score/onceimpl.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/cpukit/include/rtems/score/onceimpl.h b/cpukit/include/rtems/score/onceimpl.h
index 60f1378506..f3afe1cd13 100644
--- a/cpukit/include/rtems/score/onceimpl.h
+++ b/cpukit/include/rtems/score/onceimpl.h
@@ -7,7 +7,7 @@
*/
/*
- * Copyright (c) 2014 embedded brains GmbH. All rights reserved.
+ * Copyright (c) 2014, 2019 embedded brains GmbH. All rights reserved.
*
* embedded brains GmbH
* Dornierstr. 4
@@ -23,6 +23,8 @@
#ifndef _RTEMS_ONCE_H
#define _RTEMS_ONCE_H
+#include <rtems/score/thread.h>
+
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
@@ -37,11 +39,11 @@ extern "C" {
* @{
*/
-int _Once( unsigned char *once_state, void (*init_routine)(void) );
+int _Once( unsigned char *once_state, void ( *init_routine )( void ) );
-void _Once_Lock( void );
+Thread_Life_state _Once_Lock( void );
-void _Once_Unlock( void );
+void _Once_Unlock( Thread_Life_state thread_life_state );
/** @} */