Fix for issue #4260. Made shutdownRequested Monitor volatile
| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2006-2009 Sun Microsystems, Inc. |
| | | * Copyright 2006-2010 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | private boolean killThreads; |
| | | |
| | | // Indicates whether the Directory Server is shutting down. |
| | | private boolean shutdownRequested; |
| | | private volatile boolean shutdownRequested; |
| | | |
| | | // The thread number used for the last worker thread that was created. |
| | | private int lastThreadNumber; |
| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Copyright 2006-2010 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.extensions; |
| | | import org.opends.messages.Message; |
| | |
| | | |
| | | // Indicates whether the Directory Server is shutting down and this thread |
| | | // should stop running. |
| | | private boolean shutdownRequested; |
| | | private volatile boolean shutdownRequested; |
| | | |
| | | // Indicates whether this thread was stopped because the server threadnumber |
| | | // was reduced. |