138139140141142143144145146147148149150151152
} } }; taskRunner.start(); TaskCancelThread tct = new TaskCancelThread(1, taskRunner, this); tct.start(); try { tct.join(); taskRunner.join(); } catch(InterruptedException ie) { Assert.fail("Joining threads failed"); }
102103104105106107108109110111112113114115116
177178179180181182183184185186187188189190191
} } }; taskRunner.start(); TaskCancelThread tct = new TaskCancelThread(1, taskRunner, testTask); tct.start(); try { tct.join(); taskRunner.join(); } catch(InterruptedException ie) { Assert.fail("Joining threads failed"); }
209210211212213214215216217218219220221222223
250251252253254255256257258259260261262263264
} } }; taskRunner.start(); TaskCancelThread tct = new TaskCancelThread(2, taskRunner, this); tct.start(); try { tct.join(); taskRunner.join(); } catch(InterruptedException ie) { Assert.fail("Joining threads failed"); }
412413414415416417418419420421422423424425426
463464465466467468469470471472473474475476477
509510511512513514515516517518519520521522523
772773774775776777778779780781782783784785786
816817818819820821822823824825826827828829830