FDO API Reference | Feature Data Objects |
00001 #ifndef _THREADCAPABILITY_H_ 00002 #define _THREADCAPABILITY_H_ 00003 // 00004 00005 // 00006 // Copyright (C) 2004-2006 Autodesk, Inc. 00007 // 00008 // This library is free software; you can redistribute it and/or 00009 // modify it under the terms of version 2.1 of the GNU Lesser 00010 // General Public License as published by the Free Software Foundation. 00011 // 00012 // This library is distributed in the hope that it will be useful, 00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 // Lesser General Public License for more details. 00016 // 00017 // You should have received a copy of the GNU Lesser General Public 00018 // License along with this library; if not, write to the Free Software 00019 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00020 // 00021 00022 #ifdef _WIN32 00023 #pragma once 00024 #endif 00025 00026 /// \ingroup (enums) 00027 /// \brief 00028 /// The FdoThreadCapability enumeration defines the threading capabilities of a feature provider. 00029 enum FdoThreadCapability 00030 { 00031 /// The feature provider is not thread safe. 00032 FdoThreadCapability_SingleThreaded, 00033 00034 /// The feature provider supports a single thread per connection. Multiple concurrent threads 00035 /// cannot access the same connection object and only one command can be executing per 00036 /// connection. Multiple connections can be active concurrently as long as each is 00037 /// executing on its own thread. 00038 FdoThreadCapability_PerConnectionThreaded, 00039 00040 /// The feature provider supports a single thread per command. Multiple concurrent threads 00041 /// cannot access the same command object; however, multiple commands can be executing 00042 /// concurrently against a single connection. 00043 FdoThreadCapability_PerCommandThreaded, 00044 00045 /// The feature provider is fully multi-threaded. Concurrent thread access is safe 00046 /// for all objects. 00047 FdoThreadCapability_MultiThreaded 00048 }; 00049 #endif 00050 00051
Comments or suggestions? Send us feedback. |