Oracle® Fusion Middleware C++ API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47891-01

coherence/lang/Runnable.hpp

00001 /*
00002 * Runnable.hpp
00003 *
00004 * Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
00005 *
00006 * Oracle is a registered trademarks of Oracle Corporation and/or its
00007 * affiliates.
00008 *
00009 * This software is the confidential and proprietary information of Oracle
00010 * Corporation. You shall not disclose such confidential and proprietary
00011 * information and shall use it only in accordance with the terms of the
00012 * license agreement you entered into with Oracle.
00013 *
00014 * This notice may not be removed or altered.
00015 */
00016 #ifndef COH_RUNNABLE_HPP
00017 #define COH_RUNNABLE_HPP
00018 
00019 #include "coherence/lang/compatibility.hpp"
00020 
00021 #include "coherence/lang/interface_spec.hpp"
00022 #include "coherence/lang/TypedHandle.hpp"
00023 
00024 COH_OPEN_NAMESPACE2(coherence,lang)
00025 
00026 
00027 /**
00028 * Interface implemented by any class whose instances are intended to be
00029 * executed by a thread.
00030 *
00031 * @author mf  2007.12.10
00032 */
00033 class COH_EXPORT Runnable
00034     : public interface_spec<Runnable>
00035     {
00036     // ----- Runnable interface ---------------------------------------------
00037 
00038     public:
00039         /**
00040         * Invoke the Runnable.
00041         */
00042         virtual void run() = 0;
00043     };
00044 
00045 COH_CLOSE_NAMESPACE2
00046 
00047 #endif // COH_RUNNABLE_HPP
Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.