svn commit: r287962 - user/pho/stress2/misc
Peter Holm
pho at FreeBSD.org
Fri Sep 18 17:17:41 UTC 2015
Author: pho
Date: Fri Sep 18 17:17:40 2015
New Revision: 287962
URL: https://svnweb.freebsd.org/changeset/base/287962
Log:
No need to use atomic_*.
Pointed out by: kib
Sponsored by: EMC / Isilon storage division
Modified:
user/pho/stress2/misc/mlockall5.sh
Modified: user/pho/stress2/misc/mlockall5.sh
==============================================================================
--- user/pho/stress2/misc/mlockall5.sh Fri Sep 18 17:09:59 2015 (r287961)
+++ user/pho/stress2/misc/mlockall5.sh Fri Sep 18 17:17:40 2015 (r287962)
@@ -80,8 +80,6 @@ EOF
#include <sys/stat.h>
#include <sys/wait.h>
-#include <machine/atomic.h>
-
#include <err.h>
#include <errno.h>
#include <fcntl.h>
@@ -134,7 +132,7 @@ test(void)
rc = pthread_create(&tid[1], NULL, ml, NULL);
if (rc != 0)
errc(1, rc, "pthread_create()");
- atomic_add_int(&share, 1);
+ share = 1;
for (i = 0; i < (int)nitems(tid); i++) {
rc = pthread_join(tid[i], NULL);
if (rc != 0)
More information about the svn-src-user
mailing list