diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-09-03 12:03:04 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-09-03 12:03:04 +0200 |
commit | 285388409f1e1220514cb161a2c17018c3d3de51 (patch) | |
tree | 927d12610b94314857b5f2326fb40e415e79f7ad /tests/unittests/torture_rand.c | |
parent | aff5786ed30966dc0a00ffee3c56a9d1b5a08a7d (diff) | |
download | libssh-285388409f1e1220514cb161a2c17018c3d3de51.tar.gz libssh-285388409f1e1220514cb161a2c17018c3d3de51.tar.xz libssh-285388409f1e1220514cb161a2c17018c3d3de51.zip |
Made pthread threading a user macro
Diffstat (limited to 'tests/unittests/torture_rand.c')
-rw-r--r-- | tests/unittests/torture_rand.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/unittests/torture_rand.c b/tests/unittests/torture_rand.c index d5a1b5c5..87ecd9a6 100644 --- a/tests/unittests/torture_rand.c +++ b/tests/unittests/torture_rand.c @@ -1,6 +1,8 @@ #define LIBSSH_STATIC #include <libssh/priv.h> +#include <libssh/callbacks.h> #include <pthread.h> +#include <errno.h> #include "torture.h" #ifdef HAVE_LIBGCRYPT @@ -10,8 +12,11 @@ #define NUM_LOOPS 20000 #endif #define NUM_THREADS 100 +SSH_THREADS_PTHREAD(ssh_pthread_callbacks); static void setup(){ + printf("setup\n"); + ssh_threads_set_callbacks(&ssh_pthread_callbacks); ssh_init(); } |