projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test_urcu_lfq: remove rcu_defer_register_thread() from test_urcu_lfq
[userspace-rcu.git]
/
tests
/
api.h
diff --git
a/tests/api.h
b/tests/api.h
index c5d716f65f47a861988cc864182f44994f46d4f1..6d7190086b1babef4610fd6ca349a1b096c78687 100644
(file)
--- a/
tests/api.h
+++ b/
tests/api.h
@@
-1,7
+1,7
@@
-
#ifndef _INCLUDE_API_H
#define _INCLUDE_API_H
#ifndef _INCLUDE_API_H
#define _INCLUDE_API_H
+#define _GNU_SOURCE
#include "../config.h"
/*
#include "../config.h"
/*
@@
-19,7
+19,7
@@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 5
9 Temple Place - Suite 330, Boston, MA 02111-1307,
USA.
+ * Foundation, Inc., 5
1 Franklin Street, Fifth Floor, Boston, MA 02110-1301
USA.
*
* Copyright (c) 2006 Paul E. McKenney, IBM.
*
*
* Copyright (c) 2006 Paul E. McKenney, IBM.
*
@@
-54,7
+54,7
@@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 5
9 Temple Place - Suite 330, Boston, MA 02111-1307,
USA.
+ * Foundation, Inc., 5
1 Franklin Street, Fifth Floor, Boston, MA 02110-1301
USA.
*
* Copyright (c) 2006 Paul E. McKenney, IBM.
*/
*
* Copyright (c) 2006 Paul E. McKenney, IBM.
*/
@@
-64,7
+64,6
@@
#include <errno.h>
#include <limits.h>
#include <sys/types.h>
#include <errno.h>
#include <limits.h>
#include <sys/types.h>
-#define __USE_GNU
#include <pthread.h>
#include <sched.h>
#include <sys/param.h>
#include <pthread.h>
#include <sched.h>
#include <sys/param.h>
@@
-157,8
+156,8
@@
static int __smp_thread_id(void)
return i;
}
spin_unlock(&__thread_id_map_mutex);
return i;
}
spin_unlock(&__thread_id_map_mutex);
- fprintf(stderr, "smp_thread_id: Rogue thread, id: %
d(%#
x)\n",
- (
int)tid, (int)
tid);
+ fprintf(stderr, "smp_thread_id: Rogue thread, id: %
lu(%#l
x)\n",
+ (
unsigned long) tid, (unsigned long)
tid);
exit(-1);
}
exit(-1);
}
@@
-207,8
+206,8
@@
static void *wait_thread(thread_id_t tid)
break;
}
if (i >= NR_THREADS){
break;
}
if (i >= NR_THREADS){
- fprintf(stderr, "wait_thread: bad tid = %
d(%#
x)\n",
- (
int)tid, (int
)tid);
+ fprintf(stderr, "wait_thread: bad tid = %
lu(%#l
x)\n",
+ (
unsigned long)tid, (unsigned long
)tid);
exit(-1);
}
if (pthread_join(tid, &vp) != 0) {
exit(-1);
}
if (pthread_join(tid, &vp) != 0) {
This page took
0.023664 seconds
and
4
git commands to generate.