Changeset 2482192 in mainline for uspace/lib/c/generic/thread/fibril.c


Ignore:
Timestamp:
2025-03-05T22:22:36Z (4 days ago)
Author:
Matěj Volf <git@…>
Children:
9a41e6e
Parents:
5208709
git-author:
Matěj Volf <git@…> (2025-01-18 20:57:32)
git-committer:
Matěj Volf <git@…> (2025-03-05 22:22:36)
Message:

fix initialization of fibril.exit_hooks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/thread/fibril.c

    r5208709 r2482192  
    185185void fibril_setup(fibril_t *f)
    186186{
     187        list_initialize(&f->exit_hooks);
    187188        futex_lock(&fibril_futex);
    188189        list_append(&f->all_link, &fibril_list);
     
    566567        fibril->arg = arg;
    567568
    568         list_initialize(&fibril->exit_hooks);
    569 
    570569        context_create_t sctx = {
    571570                .fn = _fibril_main,
     
    934933                return ENOMEM;
    935934
     935        DPRINTF("adding exit hook: function %p (fibril_hook_t structure at %p)\n", hook, h);
     936
    936937        h->func = hook;
    937938        list_append(&h->link, &fibril_self()->exit_hooks);
Note: See TracChangeset for help on using the changeset viewer.