harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Weldon Washburn" <weldon...@gmail.com>
Subject [drlvm][threading] a question about JIRA H3253
Date Tue, 06 Mar 2007 00:55:17 GMT
Peter,
I modified your patch to put the variables inside the critical section.  Let
me know if the following is not OK


public Thread.State getState() {

boolean dead = false;

synchronized(lock) {

if(started && !isAlive() ) dead = true;

}

if (dead) return State.TERMINATED;

int state = (VMThreadManager.getState(this));


-- 
Weldon Washburn
Intel Enterprise Solutions Software Division

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message