diff options
| author | Garrett D'Amore <garrett@damore.org> | 2016-12-21 11:25:16 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2016-12-21 11:25:16 -0800 |
| commit | 793cf0dbf56fb8669a1d3fafa2a20dc0dd89d326 (patch) | |
| tree | 2f2330f353f7cb60cbbdcfba7f12c2ff6615825f /src/core/platform.h | |
| parent | f69883d0ed5d48e78e9e658abc145bc1aeb79279 (diff) | |
| download | nng-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.h | 8 |
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. |
