From 6eb6f10c5668bc2bdf5e561e0060e7e917ed55c1 Mon Sep 17 00:00:00 2001 From: rtm Date: Wed, 12 Jul 2006 15:35:33 +0000 Subject: passes both usertests exit had acquire where I meant release swtch now checks that you hold no locks --- proc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'proc.h') diff --git a/proc.h b/proc.h index 4c5807b..e13df41 100644 --- a/proc.h +++ b/proc.h @@ -45,6 +45,7 @@ struct proc{ int ppid; void *chan; // sleep int killed; + int locks; // # of locks currently held struct fd *fds[NOFILE]; struct Taskstate ts; // only to give cpu address of kernel stack -- cgit v1.2.3