Changeset ab6edb6 in mainline for uspace/lib/c/generic/rcu.c


Ignore:
Timestamp:
2018-06-26T17:34:48Z (7 years ago)
Author:
Jiří Zárevúcky <jiri.zarevucky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e768aea
Parents:
b59318e
git-author:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-06-25 19:28:19)
git-committer:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-06-26 17:34:48)
Message:

Simplify the interaction between async_futex and fibril_switch().

File:
1 edited

Legend:

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

    rb59318e rab6edb6  
    373373                        blocked_fib.is_ready = false;
    374374                        futex_unlock(&rcu.sync_lock.futex);
    375                         fibril_switch(FIBRIL_TO_MANAGER);
     375                        futex_lock(&async_futex);
     376                        fibril_switch(FIBRIL_FROM_BLOCKED);
     377                        futex_unlock(&async_futex);
    376378                        futex_lock(&rcu.sync_lock.futex);
    377379                } while (rcu.sync_lock.locked);
Note: See TracChangeset for help on using the changeset viewer.