diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-01-01 20:07:56 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-01-01 20:07:56 -0800 |
| commit | 5402f3277115d043158b1585a4bb67fc67fa0155 (patch) | |
| tree | bf75b380fae017a3e9e98f38ebc89cd8eab2c80d /src | |
| parent | 84e714b548fe7b4c1c3a358d5d4b206f50dccf0f (diff) | |
| download | nng-5402f3277115d043158b1585a4bb67fc67fa0155.tar.gz nng-5402f3277115d043158b1585a4bb67fc67fa0155.tar.bz2 nng-5402f3277115d043158b1585a4bb67fc67fa0155.zip | |
Stack related fixes for valgrind platform test.
Diffstat (limited to 'src')
| -rw-r--r-- | src/platform/posix/posix_thread.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/platform/posix/posix_thread.c b/src/platform/posix/posix_thread.c index 0a999326..02f0b058 100644 --- a/src/platform/posix/posix_thread.c +++ b/src/platform/posix/posix_thread.c @@ -20,12 +20,6 @@ #include <sys/types.h> #include <unistd.h> -struct nni_thread { - pthread_t tid; - void * arg; - void (*func)(void *); -}; - static pthread_mutex_t nni_plat_lock = PTHREAD_MUTEX_INITIALIZER; static int nni_plat_inited = 0; static int nni_plat_forked = 0; @@ -45,6 +39,7 @@ nni_plat_nextid(void) return (id); } + int nni_plat_mtx_init(nni_plat_mtx *mtx) { |
