308309310311312313314315316317318319320321322
} } }; taskRunner.start(); TaskCancelThread tct = new TaskCancelThread(1, taskRunner, this); tct.start(); try { tct.join(); taskRunner.join(); } catch(InterruptedException ie) { Assert.fail("Joining threads failed"); }
352353354355356357358359360361362363364365366
396397398399400401402403404405406407408409410
441442443444445446447448449450451452453454455
374375376377378379380381382383384385386387388
} } }; taskRunner.start(); TaskCancelThread tct = new TaskCancelThread(1, taskRunner, testTask); tct.start(); try { tct.join(); taskRunner.join(); } catch(InterruptedException ie) { Assert.fail("Joining threads failed"); }
425426427428429430431432433434435436437438439
} } }; taskRunner.start(); TaskCancelThread tct = new TaskCancelThread(2, taskRunner, testTask); tct.start(); try { tct.join(); taskRunner.join(); } catch(InterruptedException ie) { Assert.fail("Joining threads failed"); }
280281282283284285286287288289290291292293294
331332333334335336337338339340341342343344345
383384385386387388389390391392393394395396397
181182183184185186187188189190191192193194195