mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-24 12:35:05 +02:00
Add docs
This commit is contained in:
parent
698d156ce4
commit
388759853d
2 changed files with 8 additions and 0 deletions
5
gc.c
5
gc.c
|
@ -273,6 +273,11 @@ void gc_remove_mutator(gc_thread_data * thd)
|
||||||
pthread_mutex_unlock(&mutators_lock);
|
pthread_mutex_unlock(&mutators_lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Determine if the given mutator is in the list of active threads.
|
||||||
|
* @param thd Thread data object of the m
|
||||||
|
* @return A true value if the mutator is active, 0 otherwise.
|
||||||
|
*/
|
||||||
int gc_is_mutator_active(gc_thread_data *thd)
|
int gc_is_mutator_active(gc_thread_data *thd)
|
||||||
{
|
{
|
||||||
ck_array_iterator_t iterator;
|
ck_array_iterator_t iterator;
|
||||||
|
|
|
@ -5161,6 +5161,9 @@ void Cyc_start_trampoline(gc_thread_data * thd)
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief A helper function for calling `gc_mark_globals`.
|
||||||
|
*/
|
||||||
void gc_request_mark_globals(void)
|
void gc_request_mark_globals(void)
|
||||||
{
|
{
|
||||||
gc_mark_globals(Cyc_global_variables, global_table);
|
gc_mark_globals(Cyc_global_variables, global_table);
|
||||||
|
|
Loading…
Add table
Reference in a new issue