Changeset 7509ddc in mainline for generic/include
- Timestamp:
- 2006-06-04T21:54:49Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 34dcd3f
- Parents:
- 2cb5e64
- Location:
- generic/include/proc
- Files:
-
- 2 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 -
generic/include/proc/thread.h
r2cb5e64 r7509ddc 73 73 * 74 74 * Protects the whole thread structure except list links above. 75 * Must be acquired before T.lock for each T of type task_t.76 *77 75 */ 78 76 SPINLOCK_DECLARE(lock); … … 99 97 /** True if this thread is executing copy_to_uspace(). False otherwise. */ 100 98 bool in_copy_to_uspace; 101 99 100 /** 101 * If true, the thread will not go to sleep at all and will 102 * call thread_exit() before returning to userspace. 103 */ 104 bool interrupted; 105 102 106 bool detached; /**< If true, thread_join_timeout() cannot be used on this thread. */ 103 107 waitq_t join_wq; /**< Waitq for thread_join_timeout(). */
Note:
See TracChangeset
for help on using the changeset viewer.
