summaryrefslogtreecommitdiff
path: root/TAO/CIAO/tools/Config_Handlers/RT-CCM/TP_Handler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/CIAO/tools/Config_Handlers/RT-CCM/TP_Handler.cpp')
-rw-r--r--TAO/CIAO/tools/Config_Handlers/RT-CCM/TP_Handler.cpp62
1 files changed, 31 insertions, 31 deletions
diff --git a/TAO/CIAO/tools/Config_Handlers/RT-CCM/TP_Handler.cpp b/TAO/CIAO/tools/Config_Handlers/RT-CCM/TP_Handler.cpp
index ec28027cb5c..7a9bc607b32 100644
--- a/TAO/CIAO/tools/Config_Handlers/RT-CCM/TP_Handler.cpp
+++ b/TAO/CIAO/tools/Config_Handlers/RT-CCM/TP_Handler.cpp
@@ -7,58 +7,58 @@
namespace CIAO
{
namespace Config_Handlers
- {
- bool TP_Handler::thread_pool (
- const ThreadpoolDef &src,
- ::CIAO::DAnCE::ORS_Threadpool &dest
- )
- {
+ {
+ bool TP_Handler::thread_pool (
+ const ThreadpoolDef &src,
+ ::CIAO::DAnCE::ORS_Threadpool &dest
+ )
+ {
dest.Id = CORBA::String_var (src.id ().c_str ());
-
+
dest.stacksize =
static_cast <ACE_UINT32> (src.stacksize ());
-
+
dest.static_threads =
static_cast <ACE_UINT32> (src.static_threads( ));
-
+
dest.dynamic_threads =
static_cast <ACE_UINT32> (src.dynamic_threads());
-
+
dest.default_priority =
static_cast <ACE_INT16> (src.default_priority ());
-
+
dest.allow_request_buffering = src.allow_request_buffering ();
-
+
dest.max_buffered_requests =
static_cast <ACE_UINT32> (src.max_buffered_requests ());
-
+
dest.max_request_buffer_size =
static_cast <ACE_UINT32> (src.max_request_buffered_size ());
-
+
return true;
- }
+ }
- ThreadpoolDef
- TP_Handler::thread_pool (
- const ::CIAO::DAnCE::ORS_Threadpool &src
- )
- {
+ ThreadpoolDef
+ TP_Handler::thread_pool (
+ const ::CIAO::DAnCE::ORS_Threadpool &src
+ )
+ {
ThreadpoolDef tp (
- XMLSchema::unsignedLong (src.stacksize),
- XMLSchema::unsignedLong (src.static_threads),
- XMLSchema::unsignedLong (src.dynamic_threads),
- Priority (src.default_priority),
- XMLSchema::boolean (src.allow_request_buffering),
- XMLSchema::unsignedLong (src.max_buffered_requests),
- XMLSchema::unsignedLong (src.max_request_buffer_size)
- );
-
+ XMLSchema::unsignedLong (src.stacksize),
+ XMLSchema::unsignedLong (src.static_threads),
+ XMLSchema::unsignedLong (src.dynamic_threads),
+ Priority (src.default_priority),
+ XMLSchema::boolean (src.allow_request_buffering),
+ XMLSchema::unsignedLong (src.max_buffered_requests),
+ XMLSchema::unsignedLong (src.max_request_buffer_size)
+ );
+
if (src.Id.in () == 0)
{
tp.id (src.Id.in ());
- }
+ }
return tp;
- }
+ }
}
}