-
Notifications
You must be signed in to change notification settings - Fork 6
/
gc-platform.h
26 lines (20 loc) · 874 Bytes
/
gc-platform.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef GC_PLATFORM_H
#define GC_PLATFORM_H
#ifndef GC_IMPL
#error internal header file, not part of API
#endif
#include <stdint.h>
#include "gc-visibility.h"
struct gc_heap;
GC_INTERNAL void gc_platform_init(void);
GC_INTERNAL uintptr_t gc_platform_current_thread_stack_base(void);
GC_INTERNAL
void gc_platform_visit_global_conservative_roots(void (*f)(uintptr_t start,
uintptr_t end,
struct gc_heap *heap,
void *data),
struct gc_heap *heap,
void *data);
GC_INTERNAL int gc_platform_processor_count(void);
GC_INTERNAL uint64_t gc_platform_monotonic_nanoseconds(void);
#endif // GC_PLATFORM_H