MCPcopy Create free account
hub / github.com/1345414527/MIT6.830 / startWriter

Method startWriter

test/simpledb/BTreeDeadlockTest.java:89–95  ·  view source on GitHub ↗

Helper method to clean up the syntax of starting a BTreeWriter thread. The parameters pass through to the BTreeWriter constructor.

(TransactionId tid, 
			int item, int count)

Source from the content-addressed store, hash-verified

87 * The parameters pass through to the BTreeWriter constructor.
88 */
89 public BTreeUtility.BTreeWriter startWriter(TransactionId tid,
90 int item, int count) {
91
92 BTreeWriter bw = new BTreeWriter(tid, bf, item, count);
93 bw.start();
94 return bw;
95 }
96
97 /**
98 * Not-so-unit test to construct a deadlock situation.

Callers 1

testReadWriteDeadlockMethod · 0.95

Calls 1

startMethod · 0.45

Tested by

no test coverage detected