aboutsummaryrefslogtreecommitdiff
path: root/src/core/platform.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2016-12-21 11:25:16 -0800
committerGarrett D'Amore <garrett@damore.org>2016-12-21 11:25:16 -0800
commit793cf0dbf56fb8669a1d3fafa2a20dc0dd89d326 (patch)
tree2f2330f353f7cb60cbbdcfba7f12c2ff6615825f /src/core/platform.h
parentf69883d0ed5d48e78e9e658abc145bc1aeb79279 (diff)
downloadnng-793cf0dbf56fb8669a1d3fafa2a20dc0dd89d326.tar.gz
nng-793cf0dbf56fb8669a1d3fafa2a20dc0dd89d326.tar.bz2
nng-793cf0dbf56fb8669a1d3fafa2a20dc0dd89d326.zip
Uncrustify clean now.
Diffstat (limited to 'src/core/platform.h')
-rw-r--r--src/core/platform.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/core/platform.h b/src/core/platform.h
index f87042da..32e8727f 100644
--- a/src/core/platform.h
+++ b/src/core/platform.h
@@ -79,13 +79,14 @@ extern void *nni_alloc(size_t);
*/
extern void nni_free(void *, size_t);
-typedef struct nni_mutex *nni_mutex_t;
-typedef struct nni_cond *nni_cond_t;
+typedef struct nni_mutex * nni_mutex_t;
+typedef struct nni_cond * nni_cond_t;
/*
* Mutex handling.
*/
extern int nni_mutex_create(nni_mutex_t *);
+
extern void nni_mutex_destroy(nni_mutex_t);
extern void nni_mutex_enter(nni_mutex_t);
extern void nni_mutex_exit(nni_mutex_t);
@@ -123,7 +124,8 @@ extern void nni_cond_wait(nni_cond_t);
*/
extern int nni_cond_timedwait(nni_cond_t, uint64_t);
-typedef struct nni_thread *nni_thread_t;
+typedef struct nni_thread * nni_thread_t;
+
/*
* nni_thread_creates a thread that runs the given function. The thread
* receives a single argument.