Changeset 7f0837c in mainline for generic/src/synch
- Timestamp:
- 2006-04-24T12:59:11Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fd8af4b
- Parents:
- 24f3874
- Location:
- generic/src/synch
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/synch/condvar.c
r24f3874 r7f0837c 77 77 * 78 78 * For exact description of possible combinations of 79 * 'usec' and 'trywait', see comment for waitq_sleep_timeout().79 * @usec and @trywait, see comment for waitq_sleep_timeout(). 80 80 * 81 81 * @return See comment for waitq_sleep_timeout(). -
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) -
generic/src/synch/mutex.c
r24f3874 r7f0837c 52 52 * 53 53 * For exact description of possible combinations of 54 * 'usec' and 'trylock', see comment for waitq_sleep_timeout().54 * @usec and @trylock, see comment for waitq_sleep_timeout(). 55 55 * 56 56 * @return See comment for waitq_sleep_timeout(). -
generic/src/synch/rwlock.c
r24f3874 r7f0837c 92 92 * 93 93 * For exact description of possible combinations of 94 * 'usec' and 'trylock', see comment for waitq_sleep_timeout().94 * @usec and @trylock, see comment for waitq_sleep_timeout(). 95 95 * 96 96 * @return See comment for waitq_sleep_timeout(). … … 146 146 * 147 147 * For exact description of possible combinations of 148 * 'usec' and 'trylock', see comment for waitq_sleep_timeout().148 * @usec and @trylock, see comment for waitq_sleep_timeout(). 149 149 * 150 150 * @return See comment for waitq_sleep_timeout(). -
generic/src/synch/semaphore.c
r24f3874 r7f0837c 66 66 * 67 67 * For exact description of possible combinations of 68 * 'usec' and 'trydown', see comment for waitq_sleep_timeout().68 * @usec and @trydown, see comment for waitq_sleep_timeout(). 69 69 * 70 70 * @return See comment for waitq_sleep_timeout(). -
generic/src/synch/waitq.c
r24f3874 r7f0837c 161 161 * @param nonblocking Blocking vs. non-blocking operation mode switch. 162 162 * 163 * If usec is greater than zero, regardless of the value ofnonblocking,163 * If @usec is greater than zero, regardless of the value of @nonblocking, 164 164 * the call will not return until either timeout or wakeup comes. 165 165 * 166 * If usec is zero andnonblocking is zero (false), the call166 * If @usec is zero and @nonblocking is zero (false), the call 167 167 * will not return until wakeup comes. 168 168 * 169 * If usec is zero andnonblocking is non-zero (true), the call will169 * If @usec is zero and @nonblocking is non-zero (true), the call will 170 170 * immediately return, reporting either success or failure. 171 171 *
Note:
See TracChangeset
for help on using the changeset viewer.
