projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Include <mware/pgm.h> explicitly for non-Harvard archs.
[bertos.git]
/
kern
/
monitor.c
diff --git
a/kern/monitor.c
b/kern/monitor.c
index 80a77329bfdd111d4a020b3f0ef1cac67c887a0f..907487b133a741c15b315ee4fc9cbb7205da0215 100755
(executable)
--- a/
kern/monitor.c
+++ b/
kern/monitor.c
@@
-14,6
+14,12
@@
/*#*
*#* $Log$
/*#*
*#* $Log$
+ *#* Revision 1.3 2004/11/28 23:20:25 bernie
+ *#* Remove obsolete INITLIST macro.
+ *#*
+ *#* 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.
*#*
*#* Revision 1.1 2004/10/03 20:39:03 bernie
*#* Import in DevLib.
*#*
@@
-42,7
+48,7
@@
static List MonitorProcs;
void monitor_init(void)
{
void monitor_init(void)
{
-
INITLIS
T(&MonitorProcs);
+
LIST_INI
T(&MonitorProcs);
}
}
@@
-61,6
+67,11
@@
void monitor_remove(Process* proc)
REMOVE(&proc->monitor.link);
}
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))
#define MONITOR_NODE_TO_PROCESS(node) \
(struct Process*)((char*)(node) - offsetof(struct Process, monitor.link))