projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add a test for P1 that checks that multiple threads can properly wake
[pintos-anon]
/
src
/
tests
/
threads
/
alarm-wait.c
diff --git
a/src/tests/threads/alarm-wait.c
b/src/tests/threads/alarm-wait.c
index 8030d20155d416e2cbb06bb95c8427e56a69cc43..458e987affa670f1088451dc4b0386f5145671f9 100644
(file)
--- a/
src/tests/threads/alarm-wait.c
+++ b/
src/tests/threads/alarm-wait.c
@@
-145,7
+145,6
@@
sleeper (void *t_)
{
int64_t sleep_until = test->start + i * t->duration;
timer_sleep (sleep_until - timer_ticks ());
-
lock_acquire (&test->output_lock);
*test->output_pos++ = t->id;
lock_release (&test->output_lock);