RTEMS 6.1-rc2
Loading...
Searching...
No Matches
Data Structures | Macros | Functions
once.c File Reference

This source file contains the implementation of _Once(), _Once_Lock(), and _Once_Unlock(). More...

#include <rtems/score/onceimpl.h>
#include <rtems/score/threadimpl.h>
#include <rtems/thread.h>

Data Structures

struct  Once_Control
 

Macros

#define ONCE_STATE_INIT   0
 
#define ONCE_STATE_RUNNING   1
 
#define ONCE_STATE_COMPLETE   2
 

Functions

int _Once (unsigned char *once_state, void(*init_routine)(void))
 Reacts according to the state of once_state.
 

Detailed Description

This source file contains the implementation of _Once(), _Once_Lock(), and _Once_Unlock().