Changeset 7064e71 in mainline for uspace/lib/posix/src/pthread/keys.c


Ignore:
Timestamp:
2025-03-06T14:35:29Z (4 days ago)
Author:
Matěj Volf <git@…>
Children:
25ee7ec5
Parents:
9a41e6e
git-author:
Matěj Volf <git@…> (2025-03-05 23:09:43)
git-committer:
Matěj Volf <git@…> (2025-03-06 14:35:29)
Message:

run fibril exit hooks for main fibril as well

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/src/pthread/keys.c

    r9a41e6e r7064e71  
    104104{
    105105        /*
    106          * FIXME: this can cause a data race with another fibrill
    107          * running on_fibril_exit. The obvious solution is to add
    108          * a rwlock on the destructors array, which will be needed
    109          * anyway if we want to support unlimited number of keys.
     106         * FIXME: this can cause a data race if another fibrill concurrently
     107         * runs on_fibril_exit. The obvious solution is to add a rwlock on
     108         * the destructors array, which will be needed anyway if we want to
     109         * support unlimited number of keys.
    110110         */
    111111        destructors[key] = NULL;
Note: See TracChangeset for help on using the changeset viewer.