diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-01-13 00:00:47 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-01-13 00:00:47 -0800 |
| commit | b639e4d3643b8245b77bc8707a3a864221fad195 (patch) | |
| tree | aa21c05f7ce8a1fd388b1eb1189e38e66f79e068 /src/platform/posix/posix_thread.c | |
| parent | 2bb6a23037656474a90d869c5147b32bae1a2e40 (diff) | |
| download | nng-b639e4d3643b8245b77bc8707a3a864221fad195.tar.gz nng-b639e4d3643b8245b77bc8707a3a864221fad195.tar.bz2 nng-b639e4d3643b8245b77bc8707a3a864221fad195.zip | |
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.
Diffstat (limited to 'src/platform/posix/posix_thread.c')
| -rw-r--r-- | src/platform/posix/posix_thread.c | 15 |
1 files changed, 0 insertions, 15 deletions
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 @@ -87,21 +87,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) { int rv; |
