Rev 1113 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1113 | Rev 1653 | ||
---|---|---|---|
Line 24... | Line 24... | ||
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | */ |
27 | */ |
28 | 28 | ||
- | 29 | /** @addtogroup libc |
|
- | 30 | * @{ |
|
- | 31 | */ |
|
- | 32 | /** @file |
|
- | 33 | */ |
|
- | 34 | ||
29 | #ifndef __ATOMIC_H__ |
35 | #ifndef __ATOMIC_H__ |
30 | #define __ATOMIC_H__ |
36 | #define __ATOMIC_H__ |
31 | 37 | ||
32 | typedef struct atomic { |
38 | typedef struct atomic { |
33 | volatile long count; |
39 | volatile long count; |
Line 44... | Line 50... | ||
44 | { |
50 | { |
45 | return val->count; |
51 | return val->count; |
46 | } |
52 | } |
47 | 53 | ||
48 | #endif |
54 | #endif |
- | 55 | ||
- | 56 | ||
- | 57 | /** @} |
|
- | 58 | */ |
|
- | 59 | ||
- | 60 |