home *** CD-ROM | disk | FTP | other *** search
- package sun.misc;
-
- class VMNotifierThread extends Thread {
- int as_old;
- int as_new;
-
- VMNotifierThread(String var1) {
- super(var1);
- }
-
- public void run() {
- while(true) {
- synchronized(this){}
-
- int var1;
- int var2;
- try {
- while(this.as_old == 0) {
- try {
- this.wait();
- } catch (InterruptedException var6) {
- }
- }
-
- var1 = this.as_old;
- var2 = this.as_new;
- this.as_old = 0;
- } catch (Throwable var7) {
- throw var7;
- }
-
- VM.asChange_otherthread(var1, var2);
- }
- }
-
- synchronized void enqueue(int var1, int var2) {
- if (this.as_old == 0) {
- this.as_old = var1;
- this.as_new = var2;
- } else {
- this.as_new = var2;
- }
-
- this.notify();
- }
- }
-