Mercurial > hg > blitz_condensed
comparison src/EDU/oswego/cs/dl/util/concurrent/BrokenBarrierException.java @ 0:3dc0c5604566
Initial checkin of blitz 2.0 fcs - no installer yet.
author | Dan Creswell <dan.creswell@gmail.com> |
---|---|
date | Sat, 21 Mar 2009 11:00:06 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:3dc0c5604566 |
---|---|
1 /* | |
2 File: BrokenBarrierException.java | |
3 | |
4 Originally written by Doug Lea and released into the public domain. | |
5 This may be used for any purposes whatsoever without acknowledgment. | |
6 Thanks for the assistance and support of Sun Microsystems Labs, | |
7 and everyone contributing, testing, and using this code. | |
8 | |
9 History: | |
10 Date Who What | |
11 29Jun1998 dl Create public version | |
12 */ | |
13 | |
14 package EDU.oswego.cs.dl.util.concurrent; | |
15 | |
16 /** | |
17 * Thrown by Barrier upon interruption of participant threads | |
18 **/ | |
19 | |
20 public class BrokenBarrierException extends RuntimeException { | |
21 | |
22 /** | |
23 * The index that barrier would have returned upon | |
24 * normal return; | |
25 **/ | |
26 | |
27 public final int index; | |
28 /** | |
29 * Constructs a BrokenBarrierException with given index | |
30 **/ | |
31 public BrokenBarrierException(int idx) { | |
32 index = idx; | |
33 } | |
34 | |
35 /** | |
36 * Constructs a BrokenBarrierException with the | |
37 * specified index and detail message. | |
38 */ | |
39 public BrokenBarrierException(int idx, String message) { | |
40 super(message); | |
41 index = idx; | |
42 } | |
43 } |