Subversion Repositories HelenOS

Rev

Rev 2131 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2131 Rev 2307
Line 88... Line 88...
88
    phone_t phones[IPC_MAX_PHONES];
88
    phone_t phones[IPC_MAX_PHONES];
89
    /**
89
    /**
90
     * Active asynchronous messages. It is used for limiting uspace to
90
     * Active asynchronous messages. It is used for limiting uspace to
91
     * certain extent.
91
     * certain extent.
92
     */
92
     */
93
    atomic_t active_calls;  
93
    atomic_t active_calls;
94
   
94
   
95
    /** Architecture specific task data. */
95
    /** Architecture specific task data. */
96
    task_arch_t arch;  
96
    task_arch_t arch;
97
   
97
   
98
    /**
98
    /**
99
     * Serializes access to the B+tree of task's futexes. This mutex is
99
     * Serializes access to the B+tree of task's futexes. This mutex is
100
     * independent on the task spinlock.
100
     * independent on the task spinlock.
101
     */
101
     */
Line 109... Line 109...
109
 
109
 
110
SPINLOCK_EXTERN(tasks_lock);
110
SPINLOCK_EXTERN(tasks_lock);
111
extern btree_t tasks_btree;
111
extern btree_t tasks_btree;
112
 
112
 
113
extern void task_init(void);
113
extern void task_init(void);
-
 
114
extern void task_done(void);
114
extern task_t *task_create(as_t *as, char *name);
115
extern task_t *task_create(as_t *as, char *name);
115
extern void task_destroy(task_t *t);
116
extern void task_destroy(task_t *t);
116
extern task_t *task_run_program(void *program_addr, char *name);
117
extern task_t *task_run_program(void *program_addr, char *name);
117
extern task_t *task_find_by_id(task_id_t id);
118
extern task_t *task_find_by_id(task_id_t id);
118
extern int task_kill(task_id_t id);
119
extern int task_kill(task_id_t id);