1
/*******************************************************************************
2
* Copyright (c) 2006, 2009 Wind River Systems and others.
3
* All rights reserved. This program and the accompanying materials
4
* are made available under the terms of the Eclipse Public License v1.0
5
* which accompanies this distribution, and is available at
6
* http://www.eclipse.org/legal/epl-v10.html
9
* Wind River Systems - initial API and implementation
10
*******************************************************************************/
11
package org.eclipse.cdt.dsf.concurrent;
13
import java.lang.annotation.Documented;
14
import java.lang.annotation.ElementType;
15
import java.lang.annotation.Inherited;
16
import java.lang.annotation.Retention;
17
import java.lang.annotation.RetentionPolicy;
18
import java.lang.annotation.Target;
21
* Annotation idicating that given package, class, method, or field can be
22
* access safely from any thread. If declared on package or type, a field
23
* or method could still be declared with an annotation indicating that it's
26
* Note: the runtime retention policy is there to allow automated testing
27
* and validation code.
31
@Retention(RetentionPolicy.RUNTIME)
32
@Target({ElementType.PACKAGE, ElementType.TYPE, ElementType.METHOD, ElementType.FIELD, ElementType.CONSTRUCTOR})
35
public @interface ThreadSafe {