diff options
| author | Garrett D'Amore <garrett@damore.org> | 2020-12-27 21:20:46 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2020-12-27 21:20:46 -0800 |
| commit | e86ac84769e8467d0503840aedce208881eae1a6 (patch) | |
| tree | 926458116d4c10ba28f588d2520656319604ad0f /src/core/thread.c | |
| parent | 3d535b638667ad0fcfff4246fce61c0176a056c4 (diff) | |
| download | nng-e86ac84769e8467d0503840aedce208881eae1a6.tar.gz nng-e86ac84769e8467d0503840aedce208881eae1a6.tar.bz2 nng-e86ac84769e8467d0503840aedce208881eae1a6.zip | |
fixes #1385 nni_thr_wait is unused
Diffstat (limited to 'src/core/thread.c')
| -rw-r--r-- | src/core/thread.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/core/thread.c b/src/core/thread.c index 986ff331..f686612b 100644 --- a/src/core/thread.c +++ b/src/core/thread.c @@ -138,21 +138,6 @@ nni_thr_run(nni_thr *thr) } void -nni_thr_wait(nni_thr *thr) -{ - if (!thr->init) { - return; - } - nni_plat_mtx_lock(&thr->mtx); - thr->stop = 1; - nni_plat_cv_wake(&thr->cv); - while (!thr->done) { - nni_plat_cv_wait(&thr->cv); - } - nni_plat_mtx_unlock(&thr->mtx); -} - -void nni_thr_fini(nni_thr *thr) { if (!thr->init) { |
