summaryrefslogtreecommitdiff
path: root/libguile/finalizers.h
diff options
context:
space:
mode:
Diffstat (limited to 'libguile/finalizers.h')
-rw-r--r--libguile/finalizers.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/libguile/finalizers.h b/libguile/finalizers.h
index bad96e145..2ef075197 100644
--- a/libguile/finalizers.h
+++ b/libguile/finalizers.h
@@ -1,7 +1,7 @@
#ifndef SCM_FINALIZERS_H
#define SCM_FINALIZERS_H
-/* Copyright (C) 2012 Free Software Foundation, Inc.
+/* Copyright (C) 2012, 2013 Free Software Foundation, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
@@ -34,6 +34,14 @@ SCM_INTERNAL void scm_i_add_finalizer (void *obj, scm_t_finalizer_proc,
SCM_INTERNAL void scm_i_add_resuscitator (void *obj, scm_t_finalizer_proc,
void *data);
+SCM_INTERNAL void scm_i_finalizer_pre_fork (void);
+
+/* CALLBACK will be called on OBJ after each garbage collection, as long
+ as OBJ is accessible. It will be called from a finalizer, which may
+ be from an async or from another thread. */
+SCM_INTERNAL void scm_i_register_weak_gc_callback (SCM obj, void (*callback) (SCM));
+
SCM_INTERNAL void scm_init_finalizers (void);
+SCM_INTERNAL void scm_init_finalizer_thread (void);
#endif /* SCM_FINALIZERS_H */