aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nng_compat.c34
-rw-r--r--src/nng_compat.h15
2 files changed, 0 insertions, 49 deletions
diff --git a/src/nng_compat.c b/src/nng_compat.c
index 710be9be..2593a0dd 100644
--- a/src/nng_compat.c
+++ b/src/nng_compat.c
@@ -864,37 +864,3 @@ nn_term(void)
// in a library -- only e.g. atexit() and similar.
nng_closeall();
}
-
-// Internal test support routines.
-
-void
-nn_sleep(uint64_t msec)
-{
- nng_usleep(msec * 1000);
-}
-
-uint64_t
-nn_clock(void)
-{
- return (nng_clock());
-}
-
-extern void nni_panic(const char *, ...);
-
-int
-nn_thread_init(struct nn_thread *thr, void (*func)(void *), void *arg)
-{
- int rv;
-
- rv = nng_thread_create(&thr->thr, func, arg);
- if (rv != 0) {
- nni_panic("Cannot create thread: %s", nng_strerror(rv));
- }
- return (rv);
-}
-
-void
-nn_thread_term(struct nn_thread *thr)
-{
- nng_thread_destroy(thr->thr);
-}
diff --git a/src/nng_compat.h b/src/nng_compat.h
index 76494b5c..8c5cee6f 100644
--- a/src/nng_compat.h
+++ b/src/nng_compat.h
@@ -308,21 +308,6 @@ NN_DECL int nn_errno(void);
NN_DECL const char *nn_strerror(int);
NN_DECL void nn_term(void);
-// This stuff is intended to be exposed only for test programs and our
-// own utilities. Do not use in your own programs.
-
-#ifdef NNG_PRIVATE
-struct nn_thread {
- void *thr;
-};
-
-NN_DECL void nn_sleep(uint64_t);
-NN_DECL uint64_t nn_clock(void);
-NN_DECL int nn_thread_init(struct nn_thread *, void (*)(void *), void *);
-NN_DECL void nn_thread_term(struct nn_thread *);
-
-#endif // NNG_PRIVATE
-
#ifdef __cplusplus
}
#endif