]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.eclipse.swt.win32.win32.x86_64/src/org/eclipse/swt/internal/Lock.java
Remove invalid SHA-256-Digests
[simantics/platform.git] / bundles / org.eclipse.swt.win32.win32.x86_64 / src / org / eclipse / swt / internal / Lock.java
1 /*******************************************************************************
2  * Copyright (c) 2000, 2008 IBM Corporation and others.
3  *
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/
8  *
9  * SPDX-License-Identifier: EPL-2.0
10  *
11  * Contributors:
12  *     IBM Corporation - initial API and implementation
13  *******************************************************************************/
14 package org.eclipse.swt.internal;
15
16 /**
17  * Instances of this represent a recursive monitor.  Note that this
18  * is an empty implementation which does not actually perform locking.
19  */
20 public class Lock {
21
22 /**
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.
26  *
27  * @return the lock count
28  */
29 public int lock() {
30         return 0;
31 }
32
33 /**
34  * Unlocks the monitor. If the current thread is not
35  * the monitor owner, do nothing.
36  */
37 public void unlock() {
38 }
39 }