summaryrefslogtreecommitdiff
path: root/test/testatomic.c
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2011-01-18 10:57:28 -0800
committerSam Lantinga <slouken@libsdl.org>2011-01-18 10:57:28 -0800
commit6528d2de3fa881c712995abe67182e7426b6c168 (patch)
tree79af62bcd2207c95ce16d846a226014bcc2b19ca /test/testatomic.c
parentd3dcfad604739e9be653d86b37e847104f638b17 (diff)
downloadsdl-6528d2de3fa881c712995abe67182e7426b6c168.tar.gz
Michael gave permission to use his test code
Diffstat (limited to 'test/testatomic.c')
-rw-r--r--test/testatomic.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/test/testatomic.c b/test/testatomic.c
index 29229aee5..cce12aefa 100644
--- a/test/testatomic.c
+++ b/test/testatomic.c
@@ -68,9 +68,13 @@ void RunBasicTest()
printf("AtomicCAS() tfret=%s val=%d\n", tf(tfret), SDL_AtomicGet(&v));
}
-/* Atomic operation test, adapted from code by Michael Davidsaver at:
- http://bazaar.launchpad.net/~mdavidsaver/epics-base/atomic/revision/12105#src/libCom/test/epicsAtomicTest.c
-*/
+/**************************************************************************/
+/* Atomic operation test
+ * Adapted with permission from code by Michael Davidsaver at:
+ * http://bazaar.launchpad.net/~mdavidsaver/epics-base/atomic/revision/12105#src/libCom/test/epicsAtomicTest.c
+ * Original copyright 2010 Brookhaven Science Associates as operator of Brookhaven National Lab
+ * http://www.aps.anl.gov/epics/license/open.php
+ */
/* Tests semantics of atomic operations. Also a stress test
* to see if they are really atomic.
@@ -224,6 +228,9 @@ void RunEpicTest()
SDL_assert(bad!=Expect);
}
+/* End atomic operation test */
+/**************************************************************************/
+
int
main(int argc, char *argv[])
{