Browse Source

Removed assertions which fail when awaiting pthread threads

git-svn-id: https://svn.inf.ethz.ch/svn/lecturers/a2/trunk@8277 8c9fc860-2736-0410-a75d-ab315db34111
negelef 7 years ago
parent
commit
07f236b2dd
1 changed files with 0 additions and 2 deletions
  1. 0 2
      source/Unix.Processors.Mod

+ 0 - 2
source/Unix.Processors.Mod

@@ -23,14 +23,12 @@ PROCEDURE GetCurrentIndex- EXTERN "Activities.GetCurrentProcessorIndex" (): SIZE
 (** A suspended processor must be resumed by a call to the ResumeAnyProcessor procedure. *)
 (** A suspended processor must be resumed by a call to the ResumeAnyProcessor procedure. *)
 PROCEDURE SuspendCurrentProcessor-;
 PROCEDURE SuspendCurrentProcessor-;
 BEGIN {UNCOOPERATIVE, UNCHECKED}
 BEGIN {UNCOOPERATIVE, UNCHECKED}
-	ASSERT (count > 1);
 	ASSERT (Unix.sem_wait (ADDRESS OF semaphore) = 0);
 	ASSERT (Unix.sem_wait (ADDRESS OF semaphore) = 0);
 END SuspendCurrentProcessor;
 END SuspendCurrentProcessor;
 
 
 (** Resumes the execution of all suspended processors. *)
 (** Resumes the execution of all suspended processors. *)
 PROCEDURE ResumeAllProcessors-;
 PROCEDURE ResumeAllProcessors-;
 BEGIN {UNCOOPERATIVE, UNCHECKED}
 BEGIN {UNCOOPERATIVE, UNCHECKED}
-	ASSERT (count > 1);
 	ASSERT (Unix.sem_post (ADDRESS OF semaphore) = 0);
 	ASSERT (Unix.sem_post (ADDRESS OF semaphore) = 0);
 END ResumeAllProcessors;
 END ResumeAllProcessors;