Changeset 09ab0a9a in mainline for uspace/lib/c/generic/thread/rcu.c
- Timestamp:
- 2018-09-13T12:05:53Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cc74cb5
- Parents:
- b2aaaa0
- git-author:
- Jiri Svoboda <jiri@…> (2018-09-13 07:09:46)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-09-13 12:05:53)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/thread/rcu.c
rb2aaaa0 r09ab0a9a 81 81 #include "../private/fibril.h" 82 82 83 84 83 /** RCU sleeps for RCU_SLEEP_MS before polling an active RCU reader again. */ 85 84 #define RCU_SLEEP_MS 10 … … 90 89 #define RCU_GROUP_A (size_t)(0 | RCU_NESTING_INC) 91 90 #define RCU_GROUP_B (size_t)(1 | RCU_NESTING_INC) 92 93 91 94 92 /** Fibril local RCU data. */ … … 118 116 } blocked_fibril_t; 119 117 120 121 118 /** Fibril local RCU data. */ 122 119 static fibril_local fibril_rcu_data_t fibril_rcu = { … … 142 139 }; 143 140 144 145 141 static void wait_for_readers(size_t reader_group); 146 142 static void force_mb_in_all_threads(void); … … 154 150 static bool is_in_reader_section(size_t nesting_cnt); 155 151 static size_t get_other_group(size_t group); 156 157 152 158 153 /** Registers a fibril so it may start using RCU read sections. … … 409 404 } 410 405 411 412 406 static bool is_preexisting_reader(const fibril_rcu_data_t *fib, size_t group) 413 407 { … … 435 429 } 436 430 437 438 439 431 /** @} 440 432 */
Note:
See TracChangeset
for help on using the changeset viewer.