Changeset 3679f51a in mainline for uspace/lib/c/generic/futex.c
- Timestamp:
- 2018-06-25T20:41:09Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 95838f1
- Parents:
- d73d992
- git-author:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-06-25 20:30:35)
- git-committer:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-06-25 20:41:09)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/futex.c
rd73d992 r3679f51a 47 47 } 48 48 49 50 #ifdef FUTEX_UPGRADABLE51 52 int _upgrade_futexes = 0;53 static futex_t upg_and_wait_futex = FUTEX_INITIALIZER;54 55 void futex_upgrade_all_and_wait(void)56 {57 futex_down(&upg_and_wait_futex);58 59 if (!_upgrade_futexes) {60 rcu_assign(_upgrade_futexes, 1);61 _rcu_synchronize(BM_BLOCK_THREAD);62 }63 64 futex_up(&upg_and_wait_futex);65 }66 67 #endif68 69 49 /** @} 70 50 */
Note:
See TracChangeset
for help on using the changeset viewer.