Changeset 7f0837c in mainline for generic/src/synch/futex.c
- Timestamp:
- 2006-04-24T12:59:11Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fd8af4b
- Parents:
- 24f3874
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/synch/futex.c
r24f3874 r7f0837c 94 94 * @param uaddr Userspace address of the futex counter. 95 95 * @param usec If non-zero, number of microseconds this thread is willing to sleep. 96 * @param trydown If usec is zero and trydown is non-zero, conditional operation will be attempted.96 * @param trydown If @usec is zero and trydown is non-zero, conditional operation will be attempted. 97 97 * 98 98 * @return One of ESYNCH_TIMEOUT, ESYNCH_OK_ATOMIC and ESYNCH_OK_BLOCKED. See synch.h. … … 219 219 /** Compute hash index into futex hash table. 220 220 * 221 * @param key Address where the @key (i.e. physical address of futex counter) is stored. 222 * 223 * @return Index into futex hash table. 224 */ 225 index_t futex_ht_hash(__native *key) 226 { 227 return *key & (FUTEX_HT_SIZE-1); 228 } 229 230 /** Compare futex hash table item with a key. 231 * 221 232 * @param key Address where the key (i.e. physical address of futex counter) is stored. 222 233 * 223 * @return Index into futex hash table. 224 */ 225 index_t futex_ht_hash(__native *key) 226 { 227 return *key & (FUTEX_HT_SIZE-1); 228 } 229 230 /** Compare futex hash table item with a key. 231 * 232 * @param key Address where the key (i.e. physical address of futex counter) is stored. 233 * 234 * @return True if the item matches the key. False otherwise. 234 * @return True if the item matches the @key. False otherwise. 235 235 */ 236 236 bool futex_ht_compare(__native *key, count_t keys, link_t *item)
Note:
See TracChangeset
for help on using the changeset viewer.