platform/linux-generic/include/odp_atomic_internal.h
static inline void _odp_atomic_flag_init(_odp_atomic_flag_t *flag,
					 odp_bool_t val)
{
	__atomic_clear(flag, __ATOMIC_RELAXED);
	if (val)
		__atomic_test_and_set(flag, __ATOMIC_RELAXED);
}
/**
 * Initialize a flag atomic variable
 *
 * @param[out] flag Pointer to a flag atomic variable
 * @param val The initial value of the variable
 */
Initialize a flag atomic variable
@param[out] flag Pointer to a flag atomic variable
@param val The initial value of the variable
Initialize a flag atomic variable @param [ out ] flag Pointer to a flag atomic variable @param val The initial value of the variable
static inline void _odp_atomic_flag_init(_odp_atomic_flag_t *flag,
					 odp_bool_t val)
{
	__atomic_clear(flag, __ATOMIC_RELAXED);
	if (val)
		__atomic_test_and_set(flag, __ATOMIC_RELAXED);
}
static inline void _odp_atomic_flag_init ( _odp_atomic_flag_t * flag , odp_bool_t val ) { __atomic_clear ( flag , __ATOMIC_RELAXED ) ; if ( val ) __atomic_test_and_set ( flag , __ATOMIC_RELAXED ) ; }
Initialize a flag atomic variable
 @param[out] flag Pointer to a flag atomic variable
 @param val The initial value of the variable
Initialize a flag atomic variable @param [ out ] flag Pointer to a flag atomic variable @param val The initial value of the variable