RTEMS
corebarrierrelease.c
Go to the documentation of this file.
1 
9 /*
10  * COPYRIGHT (c) 1989-2006.
11  * On-Line Applications Research Corporation (OAR).
12  *
13  * The license and distribution terms for this file may be
14  * found in the file LICENSE in this distribution or at
15  * http://www.rtems.org/license/LICENSE.
16  */
17 
18 #ifdef HAVE_CONFIG_H
19 #include "config.h"
20 #endif
21 
23 
25  CORE_barrier_Control *the_barrier,
27  Thread_queue_Context *queue_context
28 )
29 {
30  the_barrier->number_of_waiting_threads = 0;
32  &the_barrier->Wait_queue.Queue,
33  CORE_BARRIER_TQ_OPERATIONS,
34  filter,
35  queue_context
36  );
37 }
Thread queue context for the thread queue methods.
Definition: threadq.h:198
Inlined Routines Associated with the SuperCore Barrier.
uint32_t _CORE_barrier_Do_flush(CORE_barrier_Control *the_barrier, Thread_queue_Flush_filter filter, Thread_queue_Context *queue_context)
Flushes the barrier.
Thread_Control *(* Thread_queue_Flush_filter)(Thread_Control *the_thread, Thread_queue_Queue *queue, Thread_queue_Context *queue_context)
Thread queue flush filter function.
Definition: threadqimpl.h:1223
Thread_queue_Queue Queue
The actual thread queue.
Definition: threadq.h:583
size_t _Thread_queue_Flush_critical(Thread_queue_Queue *queue, const Thread_queue_Operations *operations, Thread_queue_Flush_filter filter, Thread_queue_Context *queue_context)
Unblocks all threads enqueued on the thread queue.
Definition: threadqflush.c:63
Thread_queue_Control Wait_queue
Definition: corebarrier.h:79
uint32_t number_of_waiting_threads
Definition: corebarrier.h:86