|
Last change
on this file since 2 was
2,
checked in by jglee, 11 years ago
|
|
first commit
|
-
Property svn:executable set to
*
|
|
File size:
639 bytes
|
| Line | |
|---|
| 1 | /* |
|---|
| 2 | * Atomic operations that C can't guarantee us. Useful for |
|---|
| 3 | * resource counting etc.. |
|---|
| 4 | * |
|---|
| 5 | * But use these as seldom as possible since they are much more slower |
|---|
| 6 | * than regular operations. |
|---|
| 7 | * |
|---|
| 8 | * This file is subject to the terms and conditions of the GNU General Public |
|---|
| 9 | * License. See the file "COPYING" in the main directory of this archive |
|---|
| 10 | * for more details. |
|---|
| 11 | * |
|---|
| 12 | * Copyright (C) 1996, 97, 99, 2000, 03, 04 by Ralf Baechle |
|---|
| 13 | */ |
|---|
| 14 | #ifndef _ASM_ATOMIC_H |
|---|
| 15 | #define _ASM_ATOMIC_H |
|---|
| 16 | |
|---|
| 17 | |
|---|
| 18 | typedef struct { volatile int counter; } atomic_t; |
|---|
| 19 | |
|---|
| 20 | #ifdef __mips64 |
|---|
| 21 | typedef struct { volatile __s64 counter; } atomic64_t; |
|---|
| 22 | #endif |
|---|
| 23 | |
|---|
| 24 | #endif /* _ASM_ATOMIC_H */ |
|---|
Note: See
TracBrowser
for help on using the repository browser.