Changeset 7509ddc in mainline for generic/include/proc/task.h
- Timestamp:
- 2006-06-04T21:54:49Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 34dcd3f
- Parents:
- 2cb5e64
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/include/proc/task.h
r2cb5e64 r7509ddc 41 41 /** Task structure. */ 42 42 struct task { 43 /** Task lock. 44 * 45 * Must be acquired before threads_lock and thread lock of any of its threads. 46 */ 43 47 SPINLOCK_DECLARE(lock); 48 44 49 char *name; 45 50 link_t th_head; /**< List of threads contained in this task. */ 46 51 as_t *as; /**< Address space. */ 47 52 task_id_t taskid; /**< Unique identity of task */ 53 54 /** If this is true, new threads can become part of the task. */ 55 bool accept_new_threads; 56 57 count_t refcount; /**< Number of references (i.e. threads). */ 48 58 49 59 cap_t capabilities; /**< Task capabilities. */ … … 71 81 extern void task_init(void); 72 82 extern task_t *task_create(as_t *as, char *name); 83 extern void task_destroy(task_t *t); 73 84 extern task_t *task_run_program(void *program_addr, char *name); 74 85 extern task_t *task_find_by_id(task_id_t id); 86 extern int task_kill(task_id_t id); 87 75 88 76 89 #ifndef task_create_arch
Note:
See TracChangeset
for help on using the changeset viewer.