git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mk: build with _GNU_SOURCE defined by default
[dpdk.git]
/
examples
/
performance-thread
/
pthread_shim
/
main.c
diff --git
a/examples/performance-thread/pthread_shim/main.c
b/examples/performance-thread/pthread_shim/main.c
index
964ea25
..
03ff394
100644
(file)
--- a/
examples/performance-thread/pthread_shim/main.c
+++ b/
examples/performance-thread/pthread_shim/main.c
@@
-2,7
+2,6
@@
* Copyright(c) 2015 Intel Corporation
*/
* Copyright(c) 2015 Intel Corporation
*/
-#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
@@
-119,8
+118,7
@@
void *helloworld_pthread(void *arg)
*/
__thread pthread_t tid[HELLOW_WORLD_MAX_LTHREADS];
*/
__thread pthread_t tid[HELLOW_WORLD_MAX_LTHREADS];
-static void initial_lthread(void *args);
-static void initial_lthread(void *args __attribute__((unused)))
+static void *initial_lthread(void *args __attribute__((unused)))
{
int lcore = (int) rte_lcore_id();
/*
{
int lcore = (int) rte_lcore_id();
/*
@@
-195,6
+193,7
@@
static void initial_lthread(void *args __attribute__((unused)))
/* shutdown the lthread scheduler */
lthread_scheduler_shutdown(rte_lcore_id());
lthread_detach();
/* shutdown the lthread scheduler */
lthread_scheduler_shutdown(rte_lcore_id());
lthread_detach();
+ return NULL;
}
}
@@
-205,8
+204,6
@@
static void initial_lthread(void *args __attribute__((unused)))
* in the core mask
*/
static int
* in the core mask
*/
static int
-lthread_scheduler(void *args);
-static int
lthread_scheduler(void *args __attribute__((unused)))
{
/* create initial thread */
lthread_scheduler(void *args __attribute__((unused)))
{
/* create initial thread */