aboutsummaryrefslogtreecommitdiff
path: root/src/core/platform.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2021-07-22 00:57:13 -0700
committerGarrett D'Amore <garrett@damore.org>2021-07-22 00:57:13 -0700
commit9f0fcbd84a6ee3655f55629ed4b01d13647ac0c9 (patch)
treeba850aa64c8ae94f50c093edce2ae44a6e1e7b6a /src/core/platform.h
parentf59f322c796ac81c2dea402d0955f6d3718c7b19 (diff)
downloadnng-9f0fcbd84a6ee3655f55629ed4b01d13647ac0c9.tar.gz
nng-9f0fcbd84a6ee3655f55629ed4b01d13647ac0c9.tar.bz2
nng-9f0fcbd84a6ee3655f55629ed4b01d13647ac0c9.zip
Remove extra wrapper for platform clock support.
Diffstat (limited to 'src/core/platform.h')
-rw-r--r--src/core/platform.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/platform.h b/src/core/platform.h
index 5739811f..f1127c5b 100644
--- a/src/core/platform.h
+++ b/src/core/platform.h
@@ -236,16 +236,16 @@ extern bool nni_atomic_cas(nni_atomic_int *, int, int);
// Clock Support
//
-// nn_plat_clock returns a number of milliseconds since some arbitrary time
+// nn_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_until. The nni_plat_clock() must
+// as the times used in nni_plat_cond_until. The nni_clock() must
// 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);
+extern nni_time nni_clock(void);
-// nni_plat_sleep sleeps for the specified number of milliseconds (at least).
-extern void nni_plat_sleep(nni_duration);
+// nni_msleep sleeps for the specified number of milliseconds (at least).
+extern void nni_msleep(nni_duration);
//
// Entropy Support