CPU_HARVARD: New macro.
[bertos.git] / kern / monitor.c
index 80a77329bfdd111d4a020b3f0ef1cac67c887a0f..305b342873ebbc4d8625c7e7c877754df2f6cfec 100755 (executable)
@@ -14,6 +14,9 @@
 
 /*#*
  *#* $Log$
+ *#* Revision 1.2  2004/10/26 09:01:15  bernie
+ *#* monitor_rename(): New function.
+ *#*
  *#* Revision 1.1  2004/10/03 20:39:03  bernie
  *#* Import in DevLib.
  *#*
@@ -61,6 +64,11 @@ void monitor_remove(Process* proc)
        REMOVE(&proc->monitor.link);
 }
 
+void monitor_rename(Process *proc, const char* name)
+{
+       proc->monitor.name = name;
+}
+
 #define MONITOR_NODE_TO_PROCESS(node) \
        (struct Process*)((char*)(node) - offsetof(struct Process, monitor.link))