Changeset 7f0837c in mainline for generic/src/synch/futex.c


Ignore:
Timestamp:
2006-04-24T12:59:11Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fd8af4b
Parents:
24f3874
Message:

Remove the outdated TODO file.
Improve doxygen comments here and there.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/synch/futex.c

    r24f3874 r7f0837c  
    9494 * @param uaddr Userspace address of the futex counter.
    9595 * @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.
    9797 *
    9898 * @return One of ESYNCH_TIMEOUT, ESYNCH_OK_ATOMIC and ESYNCH_OK_BLOCKED. See synch.h.
     
    219219/** Compute hash index into futex hash table.
    220220 *
     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 */
     225index_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 *
    221232 * @param key Address where the key (i.e. physical address of futex counter) is stored.
    222233 *
    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.
    235235 */
    236236bool futex_ht_compare(__native *key, count_t keys, link_t *item)
Note: See TracChangeset for help on using the changeset viewer.