From: bernie Date: Tue, 26 Oct 2004 09:01:15 +0000 (+0000) Subject: monitor_rename(): New function. X-Git-Tag: 1.0.0~979 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=dab751ab3d3f7d4901535794215191255701ef97;p=bertos.git monitor_rename(): New function. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@262 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/kern/monitor.c b/kern/monitor.c index 80a77329..305b3428 100755 --- a/kern/monitor.c +++ b/kern/monitor.c @@ -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))