77cccac8cd
This is part of a broader change to make header files better represent the dependencies between one another (see https://github.com/jemalloc/jemalloc/issues/533). It breaks up component headers into smaller parts that can be made to have a simpler dependency graph. For the autogenerated headers (smoothstep.h and size_classes.h), no splitting was necessary, so I didn't add support to emit multiple headers.
27 lines
1.0 KiB
C
27 lines
1.0 KiB
C
#ifndef JEMALLOC_INTERNAL_NSTIME_EXTERNS_H
|
|
#define JEMALLOC_INTERNAL_NSTIME_EXTERNS_H
|
|
|
|
void nstime_init(nstime_t *time, uint64_t ns);
|
|
void nstime_init2(nstime_t *time, uint64_t sec, uint64_t nsec);
|
|
uint64_t nstime_ns(const nstime_t *time);
|
|
uint64_t nstime_sec(const nstime_t *time);
|
|
uint64_t nstime_nsec(const nstime_t *time);
|
|
void nstime_copy(nstime_t *time, const nstime_t *source);
|
|
int nstime_compare(const nstime_t *a, const nstime_t *b);
|
|
void nstime_add(nstime_t *time, const nstime_t *addend);
|
|
void nstime_subtract(nstime_t *time, const nstime_t *subtrahend);
|
|
void nstime_imultiply(nstime_t *time, uint64_t multiplier);
|
|
void nstime_idivide(nstime_t *time, uint64_t divisor);
|
|
uint64_t nstime_divide(const nstime_t *time, const nstime_t *divisor);
|
|
#ifdef JEMALLOC_JET
|
|
typedef bool (nstime_monotonic_t)(void);
|
|
extern nstime_monotonic_t *nstime_monotonic;
|
|
typedef bool (nstime_update_t)(nstime_t *);
|
|
extern nstime_update_t *nstime_update;
|
|
#else
|
|
bool nstime_monotonic(void);
|
|
bool nstime_update(nstime_t *time);
|
|
#endif
|
|
|
|
#endif /* JEMALLOC_INTERNAL_NSTIME_EXTERNS_H */
|