Changeset ff14c520 in mainline for generic/include


Ignore:
Timestamp:
2006-03-16T22:31:39Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
93165be
Parents:
37c57f2
Message:

It is now possible to associate symbolic names with both threads and tasks.
More verbose kconsole threads, tasks and scheduler commands.

Location:
generic/include/proc
Files:
2 edited

Legend:

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

    r37c57f2 rff14c520  
    3838struct task {
    3939        SPINLOCK_DECLARE(lock);
     40        char *name;
    4041        link_t th_head;         /**< List of threads contained in this task. */
    4142        link_t tasks_link;      /**< Link to other tasks within the system. */
     
    5354
    5455extern void task_init(void);
    55 extern task_t *task_create(as_t *as);
    56 extern task_t *task_run_program(void * program_addr);
     56extern task_t *task_create(as_t *as, char *name);
     57extern task_t *task_run_program(void *program_addr, char *name);
    5758
    5859#endif
  • generic/include/proc/thread.h

    r37c57f2 rff14c520  
    6060#define X_STOLEN        (1<<1)
    6161
     62/** Thread structure. There is one per thread. */
    6263struct thread {
     64        char *name;
     65       
    6366        link_t rq_link;                         /**< Run queue link. */
    6467        link_t wq_link;                         /**< Wait queue link. */
     
    126129
    127130extern void thread_init(void);
    128 extern thread_t *thread_create(void (* func)(void *), void *arg, task_t *task, int flags);
     131extern thread_t *thread_create(void (* func)(void *), void *arg, task_t *task, int flags, char *name);
    129132extern void thread_ready(thread_t *t);
    130133extern void thread_exit(void);
Note: See TracChangeset for help on using the changeset viewer.