summaryrefslogtreecommitdiff
path: root/src/core/timer.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2023-12-17 10:00:52 -0800
committerGarrett D'Amore <garrett@damore.org>2023-12-17 10:00:52 -0800
commitca6323109ba0c76e13ed629350348dfc6d144932 (patch)
tree5d6da790bdee3332d66b29b2f3ffbf0c3638aed1 /src/core/timer.h
parentdc499882e82827f39a77669fb7dc5cd7a70aaf40 (diff)
downloadnng-ca6323109ba0c76e13ed629350348dfc6d144932.tar.gz
nng-ca6323109ba0c76e13ed629350348dfc6d144932.tar.bz2
nng-ca6323109ba0c76e13ed629350348dfc6d144932.zip
fixes #1729 remove nni_timer
Diffstat (limited to 'src/core/timer.h')
-rw-r--r--src/core/timer.h34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/core/timer.h b/src/core/timer.h
deleted file mode 100644
index a8108d5f..00000000
--- a/src/core/timer.h
+++ /dev/null
@@ -1,34 +0,0 @@
-//
-// Copyright 2017 Garrett D'Amore <garrett@damore.org>
-//
-// This software is supplied under the terms of the MIT License, a
-// copy of which should be located in the distribution where this
-// file was obtained (LICENSE.txt). A copy of the license may also be
-// found online at https://opensource.org/licenses/MIT.
-//
-
-#ifndef CORE_TIMER_H
-#define CORE_TIMER_H
-
-#include "core/defs.h"
-#include "core/list.h"
-
-// For the sake of simplicity, we just maintain a single global timer thread.
-
-struct nni_timer_node {
- nni_time t_expire;
- nni_cb t_cb;
- void * t_arg;
- nni_list_node t_node;
-};
-
-typedef struct nni_timer_node nni_timer_node;
-
-extern void nni_timer_init(nni_timer_node *, nni_cb, void *);
-extern void nni_timer_fini(nni_timer_node *);
-extern void nni_timer_schedule(nni_timer_node *, nni_time);
-extern void nni_timer_cancel(nni_timer_node *);
-extern int nni_timer_sys_init(void);
-extern void nni_timer_sys_fini(void);
-
-#endif // CORE_TIMER_H