From b639e4d3643b8245b77bc8707a3a864221fad195 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Fri, 13 Jan 2017 00:00:47 -0800 Subject: Many fixes for Windows. It compiles, and some tests work. Windows is getting there. Needs a couple of more more hours to enable everything, especially IPC, and most of the work at this point is probably some combination of debug and tweaking things like error handling. --- src/platform/posix/posix_thread.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/platform/posix') diff --git a/src/platform/posix/posix_thread.c b/src/platform/posix/posix_thread.c index 0ca9c18d..a429e071 100644 --- a/src/platform/posix/posix_thread.c +++ b/src/platform/posix/posix_thread.c @@ -86,21 +86,6 @@ nni_plat_mtx_unlock(nni_plat_mtx *mtx) } -int -nni_plat_mtx_trylock(nni_plat_mtx *mtx) -{ - int rv; - - if ((rv = pthread_mutex_trylock(&mtx->mtx)) == EBUSY) { - return (NNG_EBUSY); - } - if (rv != 0) { - nni_panic("pthread_mutex_trylock: %s", strerror(rv)); - } - return (0); -} - - int nni_plat_cv_init(nni_plat_cv *cv, nni_plat_mtx *mtx) { -- cgit v1.2.3-70-g09d2