mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-07-23 00:57:19 +03:00
Initialization utilities for nstime
This commit is contained in:
parent
dd649c9485
commit
1d01e4c770
12 changed files with 46 additions and 41 deletions
|
|
@ -31,4 +31,12 @@ extern nstime_monotonic_t *JET_MUTABLE nstime_monotonic;
|
|||
typedef bool (nstime_update_t)(nstime_t *);
|
||||
extern nstime_update_t *JET_MUTABLE nstime_update;
|
||||
|
||||
bool nstime_init_update(nstime_t *time);
|
||||
|
||||
JEMALLOC_ALWAYS_INLINE void
|
||||
nstime_init_zero(nstime_t *time) {
|
||||
static const nstime_t zero = NSTIME_ZERO_INITIALIZER;
|
||||
nstime_copy(time, &zero);
|
||||
}
|
||||
|
||||
#endif /* JEMALLOC_INTERNAL_NSTIME_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue