summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElias Summermatter <elias.summermatter@seccom.ch>2021-04-03 19:28:06 +0200
committerElias Summermatter <elias.summermatter@seccom.ch>2021-04-03 19:28:06 +0200
commit26f651a8fd9ba2cd4fd5ce1e4b1bfaaf8c1847c5 (patch)
tree76747bdbee1d1696fba56f2d81e1854a90ee6b1c
parentd89359368cfc6ade3157deb5e72776e4805fd8b0 (diff)
added thread lib to setu perf
-rw-r--r--src/setu/Makefile.am3
-rw-r--r--src/setu/perf_setu_api.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/src/setu/Makefile.am b/src/setu/Makefile.am
index 75ee0912a..6e2865d8c 100644
--- a/src/setu/Makefile.am
+++ b/src/setu/Makefile.am
@@ -94,7 +94,8 @@ perf_setu_api_SOURCES = \
perf_setu_api_LDADD = \
$(top_builddir)/src/util/libgnunetutil.la \
$(top_builddir)/src/testing/libgnunettesting.la \
- libgnunetsetu.la
+ libgnunetsetu.la \
+ $(PTHREAD)
plugin_LTLIBRARIES = \
diff --git a/src/setu/perf_setu_api.c b/src/setu/perf_setu_api.c
index de9eb8c0d..e9a81c3a1 100644
--- a/src/setu/perf_setu_api.c
+++ b/src/setu/perf_setu_api.c
@@ -408,12 +408,13 @@ run (void *cls,
}
static void perf_thread(void *arg) {
+
+ printf("OK\n");
GNUNET_TESTING_service_run("perf_setu_api",
"arm",
"test_setu.conf",
&run,
NULL);
- return NULL;
}
@@ -475,6 +476,7 @@ static void execute_perf() {
int
main (int argc, char **argv)
{
+
GNUNET_log_setup ("perf_setu_api",
"WARNING",
NULL);