Skip to content

Commit 6b422b1

Browse files
Degiorgiopeterschrammel
authored andcommitted
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 d54dfbe commit 6b422b1

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
@@ -260,4 +260,12 @@ public static void notModelled()
260260
{
261261
assume(false);
262262
}
263+
264+
/**
265+
* Retrieves the current locking count for 'object'.
266+
*/
267+
public static int getMonitorCount(Object object)
268+
{
269+
return object.cproverMonitorCount;
270+
}
263271
}

0 commit comments

Comments
 (0)