1 /*******************************************************************************
2 * Copyright (c) 2000, 2008 IBM Corporation and others.
4 * This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License 2.0
6 * which accompanies this distribution, and is available at
7 * https://www.eclipse.org/legal/epl-2.0/
9 * SPDX-License-Identifier: EPL-2.0
12 * IBM Corporation - initial API and implementation
13 *******************************************************************************/
14 package org.eclipse.swt.internal;
17 * Instances of this represent a recursive monitor. Note that this
18 * is an empty implementation which does not actually perform locking.
23 * Locks the monitor and returns the lock count. If
24 * the lock is owned by another thread, wait until
25 * the lock is released.
27 * @return the lock count
34 * Unlocks the monitor. If the current thread is not
35 * the monitor owner, do nothing.
37 public void unlock() {