diff options
Diffstat (limited to 'src/platform/posix/posix_thread.c')
| -rw-r--r-- | src/platform/posix/posix_thread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/platform/posix/posix_thread.c b/src/platform/posix/posix_thread.c index 1bbe6e28..79f69762 100644 --- a/src/platform/posix/posix_thread.c +++ b/src/platform/posix/posix_thread.c @@ -28,7 +28,7 @@ static int plat_init = 0; static int plat_fork = 0; static void * -thrfunc(void *arg) +nni_thrfunc(void *arg) { nni_thread_t thr = arg; @@ -49,7 +49,7 @@ nni_thread_create(nni_thread_t *tp, void (*fn)(void *), void *arg) thr->func = fn; thr->arg = arg; - if ((rv = pthread_create(&thr->tid, NULL, thrfunc, thr)) != 0) { + if ((rv = pthread_create(&thr->tid, NULL, nni_thrfunc, thr)) != 0) { nni_free(thr, sizeof (*thr)); return (NNG_ENOMEM); } |
