Changeset 3ac5086 in mainline for kernel/generic/include/proc/task.h


Ignore:
Timestamp:
2012-11-24T02:08:55Z (11 years ago)
Author:
Adam Hraska <adam.hraska+hos@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5d230a30
Parents:
d04e46e
Message:

Fixed kernel futex cleanup: now walks list via correct links and frees items once it is sure cht is not resizing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/proc/task.h

    rd04e46e r3ac5086  
    129129        task_arch_t arch;
    130130       
    131         /** Serializes access to futex_list (independent of the task spinlock). */
    132         mutex_t futex_list_lock;
    133         /** List of all futexes accesses by this task. */
    134         list_t futex_list;
    135         /** CHT mapping virtual addresses of futex variables to futex objects. */
    136131        struct futex_cache {
     132                /** CHT mapping virtual addresses of futex variables to futex objects.*/
     133                cht_t ht;
     134                /** Serializes access to futex_list.*/
     135                mutex_t list_lock;
     136                /** List of all futexes accesses by this task. */
     137                list_t list;
    137138                work_t destroy_work;
    138                 cht_t ht;
    139139        } *futexes;
    140140       
Note: See TracChangeset for help on using the changeset viewer.