| Rev | Line |  | 
|---|
| [160] | 1 | /* | 
|---|
|  | 2 | * This file is part of DSX, development environment for static | 
|---|
|  | 3 | * SoC applications. | 
|---|
|  | 4 | * | 
|---|
|  | 5 | * This file is distributed under the terms of the GNU General Public | 
|---|
|  | 6 | * License. | 
|---|
|  | 7 | * | 
|---|
|  | 8 | * Copyright (c) 2006, Nicolas Pouillon, <nipo@ssji.net> | 
|---|
|  | 9 | *     Laboratoire d'informatique de Paris 6 / ASIM, France | 
|---|
|  | 10 | * | 
|---|
|  | 11 | *  $Id$ | 
|---|
|  | 12 | */ | 
|---|
|  | 13 |  | 
|---|
|  | 14 | #ifndef SRL_BARRIER_H_ | 
|---|
|  | 15 | #define SRL_BARRIER_H_ | 
|---|
|  | 16 |  | 
|---|
|  | 17 | /** | 
|---|
|  | 18 | * @file | 
|---|
|  | 19 | * @module{SRL} | 
|---|
|  | 20 | * @short Barrier operations | 
|---|
|  | 21 | */ | 
|---|
|  | 22 |  | 
|---|
|  | 23 | #include "stdio.h" | 
|---|
|  | 24 | #include "srl_log.h" | 
|---|
|  | 25 | #include "srl_sched_wait.h" | 
|---|
|  | 26 |  | 
|---|
|  | 27 |  | 
|---|
|  | 28 | typedef struct srl_abstract_barrier_s | 
|---|
|  | 29 | { | 
|---|
|  | 30 | unsigned int init_val; | 
|---|
|  | 31 | unsigned int count; | 
|---|
|  | 32 |  | 
|---|
|  | 33 | } srl_barrier_s; | 
|---|
|  | 34 |  | 
|---|
|  | 35 | # define SRL_BARRIER_INITIALIZER(n){ .init_val=(n) , .count =(n)} | 
|---|
|  | 36 |  | 
|---|
|  | 37 | typedef srl_barrier_s *srl_barrier_t; | 
|---|
|  | 38 |  | 
|---|
|  | 39 | void srl_barrier_wait( srl_barrier_t barrier ); | 
|---|
|  | 40 |  | 
|---|
|  | 41 |  | 
|---|
|  | 42 | #endif | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.