diff options
| author | Garrett D'Amore <garrett@damore.org> | 2016-12-23 02:08:40 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2016-12-23 02:08:40 -0800 |
| commit | 229d4c7decb71fd607aaec14ecbae81e380cc700 (patch) | |
| tree | f35cef9f46113d86a6b33d04c188bbdb948cf150 /src/platform/posix/posix_synch.c | |
| parent | 471a454900ab6142e5a3c1f53866996172d2aad4 (diff) | |
| download | nng-229d4c7decb71fd607aaec14ecbae81e380cc700.tar.gz nng-229d4c7decb71fd607aaec14ecbae81e380cc700.tar.bz2 nng-229d4c7decb71fd607aaec14ecbae81e380cc700.zip | |
Uncrustify fixes.
Diffstat (limited to 'src/platform/posix/posix_synch.c')
| -rw-r--r-- | src/platform/posix/posix_synch.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/platform/posix/posix_synch.c b/src/platform/posix/posix_synch.c index d4c4d6ac..e693a641 100644 --- a/src/platform/posix/posix_synch.c +++ b/src/platform/posix/posix_synch.c @@ -35,6 +35,7 @@ void nni_mutex_fini(nni_mutex *mp) { int rv; + if ((rv = pthread_mutex_destroy(&mp->mx)) != 0) { nni_panic("pthread_mutex_destroy failed: %s", strerror(rv)); } @@ -139,4 +140,5 @@ nni_cond_waituntil(nni_cond *c, uint64_t usec) return (0); } + #endif |
