Changeset 669f3d32 in mainline for kernel/generic/include/proc/task.h


Ignore:
Timestamp:
2012-11-20T18:26:14Z (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:
c28413a9
Parents:
04d66804
Message:

Adapted the kernel futex subsystem to use CHT.

File:
1 edited

Legend:

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

    r04d66804 r669f3d32  
    4343#include <synch/mutex.h>
    4444#include <synch/futex.h>
     45#include <synch/workqueue.h>
    4546#include <adt/avl.h>
    4647#include <adt/btree.h>
     48#include <adt/cht.h>
    4749#include <adt/list.h>
    4850#include <security/cap.h>
     
    127129        task_arch_t arch;
    128130       
    129         /**
    130          * Serializes access to the B+tree of task's futexes. This mutex is
    131          * independent on the task spinlock.
    132          */
    133         mutex_t futexes_lock;
    134         /** B+tree of futexes referenced by this task. */
    135         btree_t futexes;
     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. */
     136        struct futex_cache {
     137                work_t destroy_work;
     138                cht_t ht;
     139        } *futexes;
    136140       
    137141        /** Accumulated accounting. */
Note: See TracChangeset for help on using the changeset viewer.