Ignore:
File:
1 edited

Legend:

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

    raae365bc r6f7071b  
    4343#include <synch/mutex.h>
    4444#include <synch/futex.h>
     45#include <synch/workqueue.h>
     46#include <adt/cht.h>
    4547#include <adt/list.h>
    4648#include <adt/odict.h>
     
    128130        task_arch_t arch;
    129131
    130         /** Serializes access to futex_list.*/
    131         SPINLOCK_DECLARE(futex_list_lock);
    132         /** List of all futexes accesses by this task. */
    133         list_t futex_list;
     132        struct futex_cache {
     133                /** CHT mapping virtual addresses of futex variables to futex objects.*/
     134                cht_t ht;
     135                /** Serializes access to futex_list.*/
     136                SPINLOCK_DECLARE(list_lock);
     137                /** List of all futexes accesses by this task. */
     138                list_t list;
     139                work_t destroy_work;
     140        } *futexes;
    134141
    135142        /** Accumulated accounting. */
Note: See TracChangeset for help on using the changeset viewer.