X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=doc%2Fsample.tmpl;h=466268a1d9435afd855b4a4c8c415f47ba56e861;hb=919347c164606c3f1544b2e8bd62f505aeda80a1;hp=db2e70fd5e55ebfcb57a322c3af39ab632404509;hpb=615bf3b3d2a8573ed6fb9ddc0055745e163ac999;p=pintos-anon diff --git a/doc/sample.tmpl b/doc/sample.tmpl index db2e70f..466268a 100644 --- a/doc/sample.tmpl +++ b/doc/sample.tmpl @@ -1,8 +1,9 @@ - +-----------------+ - | CS 140 | - | SAMPLE PROJECT | - | DESIGN DOCUMENT | - +-----------------+ + + +-----------------+ + | CS 140 | + | SAMPLE PROJECT | + | DESIGN DOCUMENT | + +-----------------+ ---- GROUP ---- @@ -10,19 +11,19 @@ Ben Pfaff ---- PRELIMINARIES ---- ->> If you have any preliminary comments on your submission, notes for the ->> TAs, or extra credit, please give them here. +>> If you have any preliminary comments on your submission, notes for +>> the TAs, or extra credit, please give them here. (This is a sample design document.) >> Please cite any offline or online sources you consulted while ->> preparing your submission, other than the Pintos documentation, course ->> text, and lecture notes. +>> preparing your submission, other than the Pintos documentation, +>> course text, and lecture notes. None. - JOIN - ==== + JOIN + ==== ---- DATA STRUCTURES ---- @@ -37,9 +38,9 @@ acquires pass immediately. /* Latch. */ struct latch { - bool released; /* Released yet? */ - struct lock monitor_lock; /* Monitor lock. */ - struct condition rel_cond; /* Signaled when released. */ + bool released; /* Released yet? */ + struct lock monitor_lock; /* Monitor lock. */ + struct condition rel_cond; /* Signaled when released. */ }; Added to struct thread: