Code refactoring of 'finalization extension API'
authorIvan Maidanski <ivmai@mail.ru>
Sun, 19 Jul 2015 14:14:16 +0000 (17:14 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Sun, 19 Jul 2015 14:14:16 +0000 (17:14 +0300)
commit8daa3d241fa9dab5067281f90292692d74ebcb87
treebad02031417281cf9f0ea4f97dbfaaa328e25ddd
parent1c75653678541e5765330ccfcf300c4125a34dbd
Code refactoring of 'finalization extension API'

* finalize.c (GC_object_finalized_proc, GC_set_finalizer_notify_proc):
Use GC_await_finalize_proc type.
* finalize.c (GC_object_finalized_proc): Use STATIC instead of
"static".
* finalize.c (GC_set_finalizer_notify_proc): Rename to
GC_set_await_finalize_proc.
* include/gc.h (GC_set_finalizer_notify_proc): Likewise.
* finalize.c (GC_set_await_finalize_proc): Add LOCK/UNLOCK.
* finalize.c (GC_set_await_finalize_proc): Decorate with GC_CALL.
* include/gc.h (GC_set_await_finalize_proc): Likewise.
* finalize.c (GC_get_await_finalize_proc): New API function.
* include/gc.h (GC_await_finalize_proc): New type.
* include/gc.h (GC_set_await_finalize_proc): Document.
* include/gc.h (GC_get_await_finalize_proc): New API function
declaration.
finalize.c
include/gc.h