3 public class ObjectInfo {
10 public ObjectInfo(FlexScheduler fs) {
13 this.waiters=new HashSet();
14 if (fs.isLock()&&fs.abortThreshold==0)
18 public boolean isRisky() {
22 public void setRisky(boolean risky) {
26 public void recordAbort() {
28 if (fs.isLock()&&(aborts>fs.abortThreshold)&&
29 aborts>(commits*fs.abortRatio/100))
33 public void recordCommit() {
37 public void addWaiter(FlexScheduler.Event ev) {
41 public Set getWaiters() {
46 public void setOwner(int thread) {
50 public boolean isOwned() {
51 return threadowner!=-1;
54 public void releaseOwner() {
58 public int getOwner() {