Changeset 0dc2fec in mainline for uspace/lib/c/generic/fibril.c


Ignore:
Timestamp:
2016-05-22T19:19:43Z (9 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b272c67a
Parents:
153c7a29 (diff), af2254ec (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes

File:
1 edited

Legend:

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

    r153c7a29 r0dc2fec  
    114114        fibril->waits_for = NULL;
    115115
    116         futex_lock(&fibril_futex);
     116        /*
     117         * We are called before __tcb_set(), so we need to use
     118         * futex_down/up() instead of futex_lock/unlock() that
     119         * may attempt to access TLS.
     120         */
     121        futex_down(&fibril_futex);
    117122        list_append(&fibril->all_link, &fibril_list);
    118         futex_unlock(&fibril_futex);
     123        futex_up(&fibril_futex);
    119124       
    120125        return fibril;
Note: See TracChangeset for help on using the changeset viewer.