summaryrefslogblamecommitdiffstats
path: root/cpukit/score/src/corebarrierrelease.c
blob: 3202171e7fde4c658f32deb0aa2e10192d2adcfe (plain) (tree)
1
2
3
4
5
6
7
8
9
10

        
  
                             


                                                         


   




                                                           
                                         

   
                    


                   
                                        
 
                                

                                         
                                          

 

                                      
                                           
           
                 
    
 
/**
 * @file
 *
 * @ingroup RTEMSScoreBarrier
 *
 * @brief This source file contains the implementation of
 *   _CORE_barrier_Do_flush().
 */

/*
 *  COPYRIGHT (c) 1989-2006.
 *  On-Line Applications Research Corporation (OAR).
 *
 *  The license and distribution terms for this file may be
 *  found in the file LICENSE in this distribution or at
 *  http://www.rtems.org/license/LICENSE.
 */

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#include <rtems/score/corebarrierimpl.h>

uint32_t _CORE_barrier_Do_flush(
  CORE_barrier_Control      *the_barrier,
  Thread_queue_Flush_filter  filter,
  Thread_queue_Context      *queue_context
)
{
  return _Thread_queue_Flush_critical(
    &the_barrier->Wait_queue.Queue,
    &_CORE_barrier_Thread_queue_operations,
    filter,
    queue_context
  );
}