diff options
| author | Garrett D'Amore <garrett@damore.org> | 2018-02-20 19:41:55 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2018-02-20 19:41:55 -0800 |
| commit | fd871e6ce9de54f81f00918d4c7e3f3f4336b6d3 (patch) | |
| tree | f7758c6430a696f797763d21d5a3d53ea950b561 /src/core | |
| parent | 03b9fab6cbf8374aca5f5daa2b5b030bcc4cbb85 (diff) | |
| download | nng-fd871e6ce9de54f81f00918d4c7e3f3f4336b6d3.tar.gz nng-fd871e6ce9de54f81f00918d4c7e3f3f4336b6d3.tar.bz2 nng-fd871e6ce9de54f81f00918d4c7e3f3f4336b6d3.zip | |
Introduce 'porting layer' Public API.
This introduces portable primitives for time, random numbers,
synchronization primitives, and threading. These are somewhat
primitive (least common denominiators), but they can help with writing
portable applications, especially our own demo apps.
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/platform.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/platform.h b/src/core/platform.h index 73b6785b..cf635f4a 100644 --- a/src/core/platform.h +++ b/src/core/platform.h @@ -145,12 +145,12 @@ extern void nni_plat_thr_fini(nni_plat_thr *); // Clock Support // -// nn_plat_clock returns a number of microseconds since some arbitrary time +// nn_plat_clock returns a number of milliseconds since some arbitrary time // in the past. The values returned by nni_clock must use the same base // as the times used in nni_plat_cond_waituntil. The nni_plat_clock() must -// returnvalues > 0, and must return values smaller than 2^63. (We could relax -// this last constraint, but there is no reason to, and leaves us the option -// of using negative values for other purposes in the future.) +// return values > 0, and must return values smaller than 2^63. (We could +// relax this last constraint, but there is no reason to, and leaves us the +// option of using negative values for other purposes in the future.) extern nni_time nni_plat_clock(void); // nni_plat_sleep sleeps for the specified number of milliseconds (at least). |
