01: /*
02: * @(#)PnutsThreadGroup.java 1.1 05/04/04
03: *
04: * Copyright (c) 2005 Sun Microsystems, Inc. All Rights Reserved.
05: *
06: * See the file "LICENSE.txt" for information on usage and redistribution
07: * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
08: */
09: package org.pnuts.multithread;
10:
11: import pnuts.lang.Runtime;
12: import pnuts.lang.Context;
13:
14: class PnutsThreadGroup extends ThreadGroup {
15: Context context;
16:
17: public PnutsThreadGroup(String name) {
18: super (name);
19: }
20:
21: public PnutsThreadGroup(ThreadGroup parent, String name) {
22: super (parent, name);
23: }
24:
25: public PnutsThreadGroup(Context context) {
26: super ("");
27: this .context = context;
28: }
29:
30: public void uncaughtException(Thread t, Throwable e) {
31: Runtime.printError(e, context);
32: }
33: }
|