projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Invert the priority scheme, so that PRI_MIN is now the lowest priority
[pintos-anon]
/
src
/
tests
/
threads
/
priority-preempt.c
diff --git
a/src/tests/threads/priority-preempt.c
b/src/tests/threads/priority-preempt.c
index 452c6807c25c524d2d1d4de02b29b622baaac4b9..70f8acbee8ee67bd14349f73106a10dfbb031565 100644
(file)
--- a/
src/tests/threads/priority-preempt.c
+++ b/
src/tests/threads/priority-preempt.c
@@
-23,7
+23,7
@@
test_priority_preempt (void)
/* Make sure our priority is the default. */
ASSERT (thread_get_priority () == PRI_DEFAULT);
/* Make sure our priority is the default. */
ASSERT (thread_get_priority () == PRI_DEFAULT);
- thread_create ("high-priority", PRI_DEFAULT
-
1, simple_thread_func, NULL);
+ thread_create ("high-priority", PRI_DEFAULT
+
1, simple_thread_func, NULL);
msg ("The high-priority thread should have already completed.");
}
msg ("The high-priority thread should have already completed.");
}