1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Added synchronization to some of the 'CBreakpoint' methods.

This commit is contained in:
Mikhail Khodjaiants 2003-11-10 23:11:18 +00:00
parent f2d6ec947a
commit e680f152f8
2 changed files with 7 additions and 3 deletions

View file

@ -1,3 +1,7 @@
2003-11-10 Mikhail Khodjaiants
Added synchronization to some of the 'CBreakpoint' methods.
* CBreakpoint.java
2003-11-07 Mikhail Khodjaiants
Fix for PR 46358: NPE in the "setCurrentThread" method of "CDebugTarget".
'setCurrentThread': check if the old current thread is not null.

View file

@ -200,7 +200,7 @@ public abstract class CBreakpoint extends Breakpoint
/**
* Resets the install count of this breakpoint
*/
public void resetInstallCount() throws CoreException
public synchronized void resetInstallCount() throws CoreException
{
setAttribute( INSTALL_COUNT, 0 );
}
@ -208,7 +208,7 @@ public abstract class CBreakpoint extends Breakpoint
/**
* Increments the install count of this breakpoint
*/
public void incrementInstallCount() throws CoreException
public synchronized void incrementInstallCount() throws CoreException
{
int count = getInstallCount();
setAttribute( INSTALL_COUNT, count + 1 );
@ -226,7 +226,7 @@ public abstract class CBreakpoint extends Breakpoint
/**
* Decrements the install count of this breakpoint.
*/
public void decrementInstallCount() throws CoreException
public synchronized void decrementInstallCount() throws CoreException
{
int count = getInstallCount();
if ( count > 0 )