/[rtmk]/rtmk/task.c
ViewVC logotype

Diff of /rtmk/task.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by jrydberg, Wed Feb 20 20:04:42 2002 UTC revision 1.7 by jrydberg, Thu Feb 21 01:41:45 2002 UTC
# Line 25  Foundation, Inc., 59 Temple Place - Suit Line 25  Foundation, Inc., 59 Temple Place - Suit
25  #include "trace.h"  #include "trace.h"
26  #include "ipc-object.h"  #include "ipc-object.h"
27  #include "thread.h"  #include "thread.h"
28    #include "host.h"
29    
30  /* Task for kernel threads.  */  /* Task for kernel threads.  */
31  struct task *task_kernel;  struct task *task_kernel;
# Line 71  task_create (struct task *parent_task, b Line 72  task_create (struct task *parent_task, b
72    if (kr != KERN_SUCCESS)    if (kr != KERN_SUCCESS)
73      return kr;      return kr;
74    
75      host_info_basic.tasks++;
76    
77    *child_taskp = new_task;    *child_taskp = new_task;
78    return KERN_SUCCESS;    return KERN_SUCCESS;
79  }  }
# Line 90  task_deallocate (struct task *task) Line 93  task_deallocate (struct task *task)
93    if (--task->ref_cnt != 0)    if (--task->ref_cnt != 0)
94      return;      return;
95    
96      host_info_basic.tasks--;
97    trace_printf ("implement task_deallocate");    trace_printf ("implement task_deallocate");
98  }  }
99    

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26