Skip to content

Commit 4636248

Browse files
committed
Added new method to 'CProver.java', 'getMonitiorLock'. This is used to
check if the synchronization lock of a specific object is 'free' or 'acquired'.
1 parent dbaaca5 commit 4636248

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/main/java/org/cprover/CProver.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,4 +206,12 @@ public static void notModelled()
206206
{
207207
assume(false);
208208
}
209+
210+
/**
211+
* Retrieves the current locking count for 'object'.
212+
*/
213+
public static int getMonitorCount(Object object)
214+
{
215+
return object.cproverMonitorCount;
216+
}
209217
}

0 commit comments

Comments
 (0)