]> gitweb.factorcode.org Git - factor.git/blob - vm/safepoints.hpp
VM: Refactor safepoints.cpp/hpp to Factor style
[factor.git] / vm / safepoints.hpp
1 namespace factor {
2
3 struct safepoint_state {
4   cell fep_p;
5   profiling_sample_count sample_counts;
6
7   safepoint_state() : fep_p(false), sample_counts() {}
8
9   void handle_safepoint(factor_vm* parent, cell pc) volatile;
10
11   void enqueue_safepoint(factor_vm* parent) volatile;
12   void enqueue_samples(factor_vm* parent, cell samples, cell pc,
13                        bool foreign_thread_p) volatile;
14   void enqueue_fep(factor_vm* parent) volatile;
15 };
16
17 }