summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/Sched_Conf
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/tests/Sched_Conf')
-rw-r--r--TAO/orbsvcs/tests/Sched_Conf/Makefile327
-rw-r--r--TAO/orbsvcs/tests/Sched_Conf/README42
-rw-r--r--TAO/orbsvcs/tests/Sched_Conf/Sched_Conf.cpp443
-rw-r--r--TAO/orbsvcs/tests/Sched_Conf/Sched_Conf.dsp92
-rw-r--r--TAO/orbsvcs/tests/Sched_Conf/Sched_Conf.dsw56
-rw-r--r--TAO/orbsvcs/tests/Sched_Conf/Sched_Conf_Anomalies.cpp388
-rw-r--r--TAO/orbsvcs/tests/Sched_Conf/Sched_Conf_Anomalies.dsp102
-rw-r--r--TAO/orbsvcs/tests/Sched_Conf/Sched_Conf_Anomalies_Runtime.h59
-rw-r--r--TAO/orbsvcs/tests/Sched_Conf/Sched_Conf_Runtime.cpp160
-rw-r--r--TAO/orbsvcs/tests/Sched_Conf/Sched_Conf_Runtime.dsp96
-rw-r--r--TAO/orbsvcs/tests/Sched_Conf/Sched_Conf_Runtime.h62
11 files changed, 0 insertions, 1827 deletions
diff --git a/TAO/orbsvcs/tests/Sched_Conf/Makefile b/TAO/orbsvcs/tests/Sched_Conf/Makefile
deleted file mode 100644
index 1aba9be31ec..00000000000
--- a/TAO/orbsvcs/tests/Sched_Conf/Makefile
+++ /dev/null
@@ -1,327 +0,0 @@
-# $Id$
-
-BIN = Sched_Conf
-BUILD = $(BIN)
-
-DUMP_SRCS = \
- Sched_Conf.cpp
-
-LSRC = $(DUMP_SRCS)
-
-SCHEDULE_OBJS=$(SCHEDULE_SRCS:.cpp=.o)
-DUMP_OBJS=$(DUMP_SRCS:.cpp=.o)
-
-LDLIBS = -lorbsvcs -lTAO
-VLDLIBS = $(LDLIBS:%=%$(VAR))
-
-#----------------------------------------------------------------------------
-# Include macros and targets
-#----------------------------------------------------------------------------
-
-include $(ACE_ROOT)/include/makeinclude/wrapper_macros.GNU
-include $(ACE_ROOT)/include/makeinclude/macros.GNU
-include $(ACE_ROOT)/include/makeinclude/rules.common.GNU
-include $(ACE_ROOT)/include/makeinclude/rules.nonested.GNU
-include $(ACE_ROOT)/include/makeinclude/rules.bin.GNU
-include $(ACE_ROOT)/include/makeinclude/rules.local.GNU
-
-ifndef TAO_ROOT
-TAO_ROOT = $(ACE_ROOT)/TAO
-endif
-TSS_ORB_FLAG = #-DTAO_HAS_TSS_ORBCORE
-LDFLAGS += -L$(TAO_ROOT)/orbsvcs/orbsvcs -L$(TAO_ROOT)/tao
-CPPFLAGS += -I$(TAO_ROOT)/orbsvcs -I$(TAO_ROOT) $(TSS_ORB_FLAG)
-
-#----------------------------------------------------------------------------
-# Dependencies
-#----------------------------------------------------------------------------
-
-# DO NOT DELETE THIS LINE -- g++dep uses it.
-# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
-
-.obj/Sched_Conf.o .obj/Sched_Conf.so .shobj/Sched_Conf.o .shobj/Sched_Conf.so: Sched_Conf.cpp \
- $(ACE_ROOT)/ace/Sched_Params.h \
- $(ACE_ROOT)/ace/OS.h \
- $(ACE_ROOT)/ace/inc_user_config.h \
- $(ACE_ROOT)/ace/streams.h \
- $(ACE_ROOT)/ace/Basic_Types.h \
- $(ACE_ROOT)/ace/Basic_Types.i \
- $(ACE_ROOT)/ace/OS.i \
- $(ACE_ROOT)/ace/Trace.h \
- $(ACE_ROOT)/ace/Log_Msg.h \
- $(ACE_ROOT)/ace/Log_Record.h \
- $(ACE_ROOT)/ace/ACE.h \
- $(ACE_ROOT)/ace/ACE.i \
- $(ACE_ROOT)/ace/Log_Priority.h \
- $(ACE_ROOT)/ace/SString.h \
- $(ACE_ROOT)/ace/SString.i \
- $(ACE_ROOT)/ace/Malloc_Base.h \
- $(ACE_ROOT)/ace/Log_Record.i \
- $(ACE_ROOT)/ace/Sched_Params.i \
- $(ACE_ROOT)/ace/Get_Opt.h \
- $(ACE_ROOT)/ace/Get_Opt.i \
- $(TAO_ROOT)/tao/corba.h \
- $(TAO_ROOT)/tao/corbafwd.h \
- $(ACE_ROOT)/ace/CDR_Stream.h \
- $(ACE_ROOT)/ace/Message_Block.h \
- $(ACE_ROOT)/ace/Malloc.h \
- $(ACE_ROOT)/ace/Malloc.i \
- $(ACE_ROOT)/ace/Malloc_T.h \
- $(ACE_ROOT)/ace/Synch.h \
- $(ACE_ROOT)/ace/SV_Semaphore_Complex.h \
- $(ACE_ROOT)/ace/SV_Semaphore_Simple.h \
- $(ACE_ROOT)/ace/SV_Semaphore_Simple.i \
- $(ACE_ROOT)/ace/SV_Semaphore_Complex.i \
- $(ACE_ROOT)/ace/Synch.i \
- $(ACE_ROOT)/ace/Synch_T.h \
- $(ACE_ROOT)/ace/Event_Handler.h \
- $(ACE_ROOT)/ace/Event_Handler.i \
- $(ACE_ROOT)/ace/Synch_T.i \
- $(ACE_ROOT)/ace/Thread.h \
- $(ACE_ROOT)/ace/Thread.i \
- $(ACE_ROOT)/ace/Atomic_Op.i \
- $(ACE_ROOT)/ace/Synch_T.cpp \
- $(ACE_ROOT)/ace/Free_List.h \
- $(ACE_ROOT)/ace/Free_List.i \
- $(ACE_ROOT)/ace/Free_List.cpp \
- $(ACE_ROOT)/ace/Malloc_T.i \
- $(ACE_ROOT)/ace/Malloc_T.cpp \
- $(ACE_ROOT)/ace/Memory_Pool.h \
- $(ACE_ROOT)/ace/Signal.h \
- $(ACE_ROOT)/ace/Containers.h \
- $(ACE_ROOT)/ace/Containers.i \
- $(ACE_ROOT)/ace/Containers_T.h \
- $(ACE_ROOT)/ace/Containers_T.i \
- $(ACE_ROOT)/ace/Containers_T.cpp \
- $(ACE_ROOT)/ace/Signal.i \
- $(ACE_ROOT)/ace/Object_Manager.h \
- $(ACE_ROOT)/ace/Object_Manager.i \
- $(ACE_ROOT)/ace/Managed_Object.h \
- $(ACE_ROOT)/ace/Managed_Object.i \
- $(ACE_ROOT)/ace/Managed_Object.cpp \
- $(ACE_ROOT)/ace/Mem_Map.h \
- $(ACE_ROOT)/ace/Mem_Map.i \
- $(ACE_ROOT)/ace/Memory_Pool.i \
- $(ACE_ROOT)/ace/Message_Block.i \
- $(ACE_ROOT)/ace/Message_Block_T.h \
- $(ACE_ROOT)/ace/Message_Block_T.i \
- $(ACE_ROOT)/ace/Message_Block_T.cpp \
- $(ACE_ROOT)/ace/CDR_Stream.i \
- $(TAO_ROOT)/tao/try_macros.h \
- $(TAO_ROOT)/tao/orbconf.h \
- $(ACE_ROOT)/ace/CORBA_macros.h \
- $(TAO_ROOT)/tao/Environment.h \
- $(TAO_ROOT)/tao/Environment.i \
- $(TAO_ROOT)/tao/ORB.h \
- $(TAO_ROOT)/tao/Exception.h \
- $(TAO_ROOT)/tao/Exception.i \
- $(TAO_ROOT)/tao/ORB.i \
- $(TAO_ROOT)/tao/Any.h \
- $(TAO_ROOT)/tao/CDR.h \
- $(TAO_ROOT)/tao/Typecode.h \
- $(TAO_ROOT)/tao/Typecode.i \
- $(TAO_ROOT)/tao/CDR.i \
- $(TAO_ROOT)/tao/Any.i \
- $(TAO_ROOT)/tao/NVList.h \
- $(TAO_ROOT)/tao/NVList.i \
- $(TAO_ROOT)/tao/Principal.h \
- $(TAO_ROOT)/tao/Sequence.h \
- $(TAO_ROOT)/tao/Managed_Types.h \
- $(TAO_ROOT)/tao/Managed_Types.i \
- $(TAO_ROOT)/tao/Sequence.i \
- $(TAO_ROOT)/tao/Principal.i \
- $(TAO_ROOT)/tao/Request.h \
- $(TAO_ROOT)/tao/Request.i \
- $(TAO_ROOT)/tao/Server_Request.h \
- $(TAO_ROOT)/tao/Object_KeyC.h \
- $(TAO_ROOT)/tao/Object_KeyC.i \
- $(TAO_ROOT)/tao/GIOP.h \
- $(TAO_ROOT)/tao/Sequence_T.h \
- $(TAO_ROOT)/tao/Sequence_T.i \
- $(TAO_ROOT)/tao/Sequence_T.cpp \
- $(TAO_ROOT)/tao/GIOP.i \
- $(TAO_ROOT)/tao/Object.h \
- $(TAO_ROOT)/tao/Object.i \
- $(TAO_ROOT)/tao/Server_Request.i \
- $(TAO_ROOT)/tao/Context.h \
- $(TAO_ROOT)/tao/Context.i \
- $(TAO_ROOT)/tao/varout.h \
- $(TAO_ROOT)/tao/varout.i \
- $(TAO_ROOT)/tao/varout.cpp \
- $(TAO_ROOT)/tao/Marshal.h \
- $(TAO_ROOT)/tao/Marshal.i \
- $(TAO_ROOT)/tao/singletons.h \
- $(ACE_ROOT)/ace/Singleton.h \
- $(ACE_ROOT)/ace/Singleton.i \
- $(ACE_ROOT)/ace/Singleton.cpp \
- $(TAO_ROOT)/tao/PolicyC.h \
- $(TAO_ROOT)/tao/PolicyC.i \
- $(TAO_ROOT)/tao/CurrentC.h \
- $(TAO_ROOT)/tao/CurrentC.i \
- $(TAO_ROOT)/tao/POA.h \
- $(ACE_ROOT)/ace/Hash_Map_Manager.h \
- $(ACE_ROOT)/ace/Functor.h \
- $(ACE_ROOT)/ace/Functor.i \
- $(ACE_ROOT)/ace/Functor_T.h \
- $(ACE_ROOT)/ace/Functor_T.i \
- $(ACE_ROOT)/ace/Functor_T.cpp \
- $(ACE_ROOT)/ace/Hash_Map_Manager.i \
- $(ACE_ROOT)/ace/Hash_Map_Manager_T.h \
- $(ACE_ROOT)/ace/Hash_Map_Manager_T.i \
- $(ACE_ROOT)/ace/Hash_Map_Manager_T.cpp \
- $(ACE_ROOT)/ace/Service_Config.h \
- $(ACE_ROOT)/ace/Service_Object.h \
- $(ACE_ROOT)/ace/Shared_Object.h \
- $(ACE_ROOT)/ace/Shared_Object.i \
- $(ACE_ROOT)/ace/Service_Object.i \
- $(ACE_ROOT)/ace/Service_Config.i \
- $(ACE_ROOT)/ace/Reactor.h \
- $(ACE_ROOT)/ace/Handle_Set.h \
- $(ACE_ROOT)/ace/Handle_Set.i \
- $(ACE_ROOT)/ace/Timer_Queue.h \
- $(ACE_ROOT)/ace/Timer_Queue_T.h \
- $(ACE_ROOT)/ace/Timer_Queue_T.i \
- $(ACE_ROOT)/ace/Timer_Queue_T.cpp \
- $(ACE_ROOT)/ace/Reactor.i \
- $(ACE_ROOT)/ace/Reactor_Impl.h \
- $(ACE_ROOT)/ace/Svc_Conf_Tokens.h \
- $(TAO_ROOT)/tao/POAC.h \
- $(TAO_ROOT)/tao/POAC.i \
- $(TAO_ROOT)/tao/Servant_Base.h \
- $(TAO_ROOT)/tao/Servant_Base.i \
- $(TAO_ROOT)/tao/POAS.h \
- $(TAO_ROOT)/tao/POA_CORBA.h \
- $(TAO_ROOT)/tao/DynAnyC.h \
- $(TAO_ROOT)/tao/DynAnyC.i \
- $(TAO_ROOT)/tao/POAS.i \
- $(TAO_ROOT)/tao/Active_Object_Map.h \
- $(ACE_ROOT)/ace/Map.h \
- $(ACE_ROOT)/ace/Map.i \
- $(ACE_ROOT)/ace/Map_T.h \
- $(ACE_ROOT)/ace/Pair.h \
- $(ACE_ROOT)/ace/Pair.i \
- $(ACE_ROOT)/ace/Pair_T.h \
- $(ACE_ROOT)/ace/Pair_T.i \
- $(ACE_ROOT)/ace/Pair_T.cpp \
- $(ACE_ROOT)/ace/Map_Manager.h \
- $(ACE_ROOT)/ace/Map_Manager.i \
- $(ACE_ROOT)/ace/Map_Manager.cpp \
- $(ACE_ROOT)/ace/Active_Map_Manager.h \
- $(ACE_ROOT)/ace/Active_Map_Manager.i \
- $(ACE_ROOT)/ace/Active_Map_Manager_T.h \
- $(ACE_ROOT)/ace/Active_Map_Manager_T.i \
- $(ACE_ROOT)/ace/Active_Map_Manager_T.cpp \
- $(ACE_ROOT)/ace/Map_T.i \
- $(ACE_ROOT)/ace/Map_T.cpp \
- $(TAO_ROOT)/tao/Server_Strategy_Factory.h \
- $(ACE_ROOT)/ace/Strategies_T.h \
- $(ACE_ROOT)/ace/Strategies.h \
- $(ACE_ROOT)/ace/Strategies.i \
- $(ACE_ROOT)/ace/Synch_Options.h \
- $(ACE_ROOT)/ace/Synch_Options.i \
- $(ACE_ROOT)/ace/Thread_Manager.h \
- $(ACE_ROOT)/ace/Thread_Manager.i \
- $(ACE_ROOT)/ace/Strategies_T.i \
- $(ACE_ROOT)/ace/Strategies_T.cpp \
- $(ACE_ROOT)/ace/Service_Repository.h \
- $(ACE_ROOT)/ace/Service_Types.h \
- $(ACE_ROOT)/ace/Service_Types.i \
- $(ACE_ROOT)/ace/Service_Repository.i \
- $(ACE_ROOT)/ace/WFMO_Reactor.h \
- $(ACE_ROOT)/ace/Message_Queue.h \
- $(ACE_ROOT)/ace/IO_Cntl_Msg.h \
- $(ACE_ROOT)/ace/Message_Queue_T.h \
- $(ACE_ROOT)/ace/Message_Queue_T.i \
- $(ACE_ROOT)/ace/Message_Queue_T.cpp \
- $(ACE_ROOT)/ace/Message_Queue.i \
- $(ACE_ROOT)/ace/WFMO_Reactor.i \
- $(TAO_ROOT)/tao/Connect.h \
- $(ACE_ROOT)/ace/Acceptor.h \
- $(ACE_ROOT)/ace/Svc_Handler.h \
- $(ACE_ROOT)/ace/Task.h \
- $(ACE_ROOT)/ace/Task.i \
- $(ACE_ROOT)/ace/Task_T.h \
- $(ACE_ROOT)/ace/Task_T.i \
- $(ACE_ROOT)/ace/Task_T.cpp \
- $(ACE_ROOT)/ace/Module.h \
- $(ACE_ROOT)/ace/Module.i \
- $(ACE_ROOT)/ace/Module.cpp \
- $(ACE_ROOT)/ace/Stream_Modules.h \
- $(ACE_ROOT)/ace/Stream_Modules.i \
- $(ACE_ROOT)/ace/Stream_Modules.cpp \
- $(ACE_ROOT)/ace/Svc_Handler.i \
- $(ACE_ROOT)/ace/Svc_Handler.cpp \
- $(ACE_ROOT)/ace/Dynamic.h \
- $(ACE_ROOT)/ace/Dynamic.i \
- $(ACE_ROOT)/ace/Acceptor.i \
- $(ACE_ROOT)/ace/Acceptor.cpp \
- $(ACE_ROOT)/ace/SOCK_Acceptor.h \
- $(ACE_ROOT)/ace/SOCK_Stream.h \
- $(ACE_ROOT)/ace/SOCK_IO.h \
- $(ACE_ROOT)/ace/SOCK.h \
- $(ACE_ROOT)/ace/Addr.h \
- $(ACE_ROOT)/ace/Addr.i \
- $(ACE_ROOT)/ace/IPC_SAP.h \
- $(ACE_ROOT)/ace/IPC_SAP.i \
- $(ACE_ROOT)/ace/SOCK.i \
- $(ACE_ROOT)/ace/SOCK_IO.i \
- $(ACE_ROOT)/ace/INET_Addr.h \
- $(ACE_ROOT)/ace/INET_Addr.i \
- $(ACE_ROOT)/ace/SOCK_Stream.i \
- $(ACE_ROOT)/ace/Time_Value.h \
- $(ACE_ROOT)/ace/SOCK_Acceptor.i \
- $(TAO_ROOT)/tao/Connect.i \
- $(TAO_ROOT)/tao/params.h \
- $(TAO_ROOT)/tao/params.i \
- $(TAO_ROOT)/tao/Active_Object_Map.i \
- $(TAO_ROOT)/tao/POAManager.h \
- $(TAO_ROOT)/tao/poa_macros.h \
- $(TAO_ROOT)/tao/POAManager.i \
- $(TAO_ROOT)/tao/POA.i \
- $(TAO_ROOT)/tao/Stub.h \
- $(TAO_ROOT)/tao/Pluggable.h \
- $(TAO_ROOT)/tao/MProfile.h \
- $(TAO_ROOT)/tao/MProfile.i \
- $(TAO_ROOT)/tao/Stub.i \
- $(TAO_ROOT)/tao/ORB_Core.h \
- $(TAO_ROOT)/tao/IIOP_Connector.h \
- $(ACE_ROOT)/ace/Connector.h \
- $(ACE_ROOT)/ace/Connector.i \
- $(ACE_ROOT)/ace/Connector.cpp \
- $(ACE_ROOT)/ace/SOCK_Connector.h \
- $(ACE_ROOT)/ace/SOCK_Connector.i \
- $(TAO_ROOT)/tao/IIOP_Acceptor.h \
- $(TAO_ROOT)/tao/ORB_Core.i \
- $(ACE_ROOT)/ace/Dynamic_Service.h \
- $(ACE_ROOT)/ace/Dynamic_Service.cpp \
- $(TAO_ROOT)/tao/Operation_Table.h \
- $(TAO_ROOT)/tao/Client_Strategy_Factory.h \
- $(TAO_ROOT)/tao/Invocation.h \
- $(TAO_ROOT)/tao/Invocation.i \
- $(TAO_ROOT)/tao/InconsistentTypeCodeC.h \
- $(TAO_ROOT)/tao/DynAny_i.h \
- $(TAO_ROOT)/tao/Union.h \
- $(TAO_ROOT)/orbsvcs/orbsvcs/CosNamingC.h \
- $(TAO_ROOT)/orbsvcs/orbsvcs/orbsvcs_export.h \
- $(TAO_ROOT)/orbsvcs/orbsvcs/CosNamingC.i \
- $(TAO_ROOT)/orbsvcs/orbsvcs/Scheduler_Factory.h \
- $(TAO_ROOT)/orbsvcs/orbsvcs/RtecSchedulerC.h \
- $(TAO_ROOT)/orbsvcs/orbsvcs/CosTimeBaseC.h \
- $(TAO_ROOT)/orbsvcs/orbsvcs/CosTimeBaseC.i \
- $(TAO_ROOT)/orbsvcs/orbsvcs/RtecSchedulerC.i \
- $(TAO_ROOT)/orbsvcs/orbsvcs/Scheduler_Factory.i \
- $(TAO_ROOT)/orbsvcs/orbsvcs/Naming/Naming_Utils.h \
- $(TAO_ROOT)/orbsvcs/orbsvcs/IOR_Multicast.h \
- $(ACE_ROOT)/ace/SOCK_Dgram_Mcast.h \
- $(ACE_ROOT)/ace/SOCK_Dgram.h \
- $(ACE_ROOT)/ace/SOCK_Dgram.i \
- $(ACE_ROOT)/ace/SOCK_Dgram_Mcast.i \
- $(TAO_ROOT)/orbsvcs/orbsvcs/Naming/CosNaming_i.h \
- $(TAO_ROOT)/orbsvcs/orbsvcs/CosNamingS.h \
- $(TAO_ROOT)/orbsvcs/orbsvcs/CosNamingS_T.h \
- $(TAO_ROOT)/orbsvcs/orbsvcs/CosNamingS_T.i \
- $(TAO_ROOT)/orbsvcs/orbsvcs/CosNamingS_T.cpp \
- $(TAO_ROOT)/orbsvcs/orbsvcs/CosNamingS.i \
- $(TAO_ROOT)/orbsvcs/orbsvcs/Naming/Entries.h
-
-# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
diff --git a/TAO/orbsvcs/tests/Sched_Conf/README b/TAO/orbsvcs/tests/Sched_Conf/README
deleted file mode 100644
index e787e7d690a..00000000000
--- a/TAO/orbsvcs/tests/Sched_Conf/README
+++ /dev/null
@@ -1,42 +0,0 @@
-Overview:
-
- The scheduling service can run in one of two different modes of
- operation, an off-line configuration mode, and a run-time execution mode.
- The application uses the Scheduler_Factory to specify in which mode
- it would like to use the scheduling service.
-
- In the configuration mode, the application registers RT_Infos containing
- operation characteristics with the off-line scheduler, and also specifies
- operation dependencies. The Event Channel also registers RT_Infos for its
- own operations, and specifies any additional dependencies introduced by
- subscription or event correllation.
-
- Once all operations are registered, the application invokes the
- scheduler's compute_scheduling method. The scheduler generates a
- "schedule" consisting of operation priorities and sub-priorities, and
- determines whether or not the schedule is feasible. The scheduler also
- produces queue specification information that can be used to configure
- the dispatching module's number and kinds of queues (this
- automatic dispatching module configuration will appear in a TAO release
- *very* soon). The application then may ask the config scheduler to dump
- it's schedule to a header file.
-
- The Sched_Conf.cpp file in this directory is an example of how this is done.
- Building and running the Sched_Conf executable will produce a header file
- called Sched_Conf_Runtime.h, which is included by Sched_Conf_Runtime.cpp.
-
- The dumped header file contains tables with the static scheduling and
- configuration information. The Sched_Conf_Runtime application passes this
- information to the run-time scheduler at start-up. The application may also
- re-register its operations to verify the correct operations were loaded. The
- Sched_Conf_Runtime does this, and in fact exercises a number of methods
- of the run-time scheduler to ensure it gives correct responses for the
- table of operations with which it was instantiated.
-
-Program operation:
-
- build Sched_Conf
- run Sched_Conf
- build Sched_Conf_Runtime
- run Sched_Conf_Runtime
-
diff --git a/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf.cpp b/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf.cpp
deleted file mode 100644
index 0eb5c1477ec..00000000000
--- a/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf.cpp
+++ /dev/null
@@ -1,443 +0,0 @@
-// $Id$
-
-// This program performa a simple scheduler configuration run,
-// and dumps the results of one scheduling into a C++ header file.
-
-#include "ace/Sched_Params.h"
-#include "ace/Get_Opt.h"
-#include "tao/corba.h"
-
-#include "orbsvcs/CosNamingC.h"
-#include "orbsvcs/Scheduler_Factory.h"
-#include "orbsvcs/Naming/Naming_Utils.h"
-
-ACE_RCSID(Sched_Conf, Sched_Conf, "$Id$")
-
-const char* service_name = "ScheduleService";
-
-const char* format_string = "{%-12s, %d, %d, %d, %d, %8d, "
- "ACE_static_cast (RtecScheduler::Criticality_t, %d), "
- "ACE_static_cast (RtecScheduler::Importance_t, %d), "
- "%d, %d, %3d, %d, %d, "
- "ACE_static_cast (RtecScheduler::Info_Type_t, %d)}\n";
-
-int
-parse_args (int argc, char *argv [])
-{
- ACE_Get_Opt get_opt (argc, argv, "n:");
- int opt;
-
- while ((opt = get_opt ()) != EOF)
- {
- switch (opt)
- {
- case 'n':
- service_name = get_opt.optarg;
- break;
- case '?':
- default:
- ACE_DEBUG ((LM_DEBUG,
- "Usage: %s "
- "-n service_name "
- "\n",
- argv[0]));
- return -1;
- }
- }
-
- return 0;
-}
-
-int
-main (int argc, char *argv[])
-{
- if (parse_args (argc, argv) != 0)
- {
- return 1;
- }
-
- // create initial data for supplier and consumer operations
- const int operation_count = 16;
- ACE_Scheduler_Factory::POD_RT_Info config_infos[operation_count] = {
- // 20 Hz high criticality supplier
- { "high_20_S", // entry point
- 0, // handle
- 5000, // worst case execution time
- 5000, // typical execution time (unused)
- 5000, // cached execution time
- 500000, // period (100 ns)
- RtecScheduler::HIGH_CRITICALITY, // criticality
- RtecScheduler::LOW_IMPORTANCE, // importance
- 0, // quantum (unused)
- 1, // threads
- 0, // OS priority
- 0, // Preemption subpriority
- 0, // Preemption priority
- RtecScheduler::OPERATION // info type
- },
- // 20 Hz low criticality supplier
- { "low_20_S", // entry point
- 0, // handle
- 5000, // worst case execution time
- 5000, // typical execution time (unused)
- 5000, // cached execution time
- 500000, // period (100 ns)
- RtecScheduler::LOW_CRITICALITY, // criticality
- RtecScheduler::HIGH_IMPORTANCE, // importance
- 0, // quantum (unused)
- 1, // threads
- 0, // OS priority
- 0, // Preemption subpriority
- 0, // Preemption priority
- RtecScheduler::OPERATION // info type
- },
- // 10 Hz high criticality supplier
- { "high_10_S", // entry point
- 0, // handle
- 10000, // worst case execution time
- 10000, // typical execution time (unused)
- 10000, // cached execution time
- 1000000, // period (100 ns)
- RtecScheduler::HIGH_CRITICALITY, // criticality
- RtecScheduler::LOW_IMPORTANCE, // importance
- 0, // quantum (unused)
- 1, // threads
- 0, // OS priority
- 0, // Preemption subpriority
- 0, // Preemption priority
- RtecScheduler::OPERATION // info type
- },
- // 10 Hz low criticality supplier
- { "low_10_S", // entry point
- 0, // handle
- 10000, // worst case execution time
- 10000, // typical execution time (unused)
- 10000, // cached execution time
- 1000000, // period (100 ns)
- RtecScheduler::LOW_CRITICALITY, // criticality
- RtecScheduler::HIGH_IMPORTANCE, // importance
- 0, // quantum (unused)
- 1, // threads
- 0, // OS priority
- 0, // Preemption subpriority
- 0, // Preemption priority
- RtecScheduler::OPERATION // info type
- },
- // 5 Hz high criticality supplier
- { "high_05_S", // entry point
- 0, // handle
- 20000, // worst case execution time
- 20000, // typical execution time (unused)
- 20000, // cached execution time
- 2000000, // period (100 ns)
- RtecScheduler::HIGH_CRITICALITY, // criticality
- RtecScheduler::LOW_IMPORTANCE, // importance
- 0, // quantum (unused)
- 1, // threads
- 0, // OS priority
- 0, // Preemption subpriority
- 0, // Preemption priority
- RtecScheduler::OPERATION // info type
- },
- // 5 Hz low criticality supplier
- { "low_05_S", // entry point
- 0, // handle
- 20000, // worst case execution time
- 20000, // typical execution time (unused)
- 20000, // cached execution time
- 2000000, // period (100 ns)
- RtecScheduler::LOW_CRITICALITY, // criticality
- RtecScheduler::HIGH_IMPORTANCE, // importance
- 0, // quantum (unused)
- 1, // threads
- 0, // OS priority
- 0, // Preemption subpriority
- 0, // Preemption priority
- RtecScheduler::OPERATION // info type
- },
- // 1 Hz high criticality supplier (declares a rate but no threads)
- { "high_01_S", // entry point
- 0, // handle
- 100000, // worst case execution time
- 100000, // typical execution time (unused)
- 100000, // cached execution time
- 10000000, // period (100 ns)
- RtecScheduler::HIGH_CRITICALITY, // criticality
- RtecScheduler::LOW_IMPORTANCE, // importance
- 0, // quantum (unused)
- 0, // threads
- 0, // OS priority
- 0, // Preemption subpriority
- 0, // Preemption priority
- RtecScheduler::OPERATION // info type
- },
- // 1 Hz low criticality supplier (remote dependant: scheduler should warn)
- { "low_01_S", // entry point
- 0, // handle
- 100000, // worst case execution time
- 100000, // typical execution time (unused)
- 100000, // cached execution time
- 10000000, // period (100 ns)
- RtecScheduler::LOW_CRITICALITY, // criticality
- RtecScheduler::HIGH_IMPORTANCE, // importance
- 0, // quantum (unused)
- 0, // threads
- 0, // OS priority
- 0, // Preemption subpriority
- 0, // Preemption priority
- RtecScheduler::OPERATION // info type
- },
- // 20 Hz high criticality consumer
- { "high_20_C", // entry point
- 0, // handle
- 0, // worst case execution time
- 0, // typical execution time (unused)
- 0, // cached execution time
- 0, // period (zero)
- RtecScheduler::HIGH_CRITICALITY, // criticality
- RtecScheduler::LOW_IMPORTANCE, // importance
- 0, // quantum (unused)
- 0, // threads
- 0, // OS priority
- 0, // Preemption subpriority
- 0, // Preemption priority
- RtecScheduler::OPERATION // info type
- },
- // 20 Hz low criticality consumer
- { "low_20_C", // entry point
- 0, // handle
- 0, // worst case execution time
- 0, // typical execution time (unused)
- 0, // cached execution time
- 0, // period (zero)
- RtecScheduler::LOW_CRITICALITY, // criticality
- RtecScheduler::HIGH_IMPORTANCE, // importance
- 0, // quantum (unused)
- 0, // threads
- 0, // OS priority
- 0, // Preemption subpriority
- 0, // Preemption priority
- RtecScheduler::OPERATION // info type
- },
- // 10 Hz high criticality consumer
- { "high_10_C", // entry point
- 0, // handle
- 0, // worst case execution time
- 0, // typical execution time (unused)
- 0, // cached execution time
- 0, // period (zero)
- RtecScheduler::HIGH_CRITICALITY, // criticality
- RtecScheduler::LOW_IMPORTANCE, // importance
- 0, // quantum (unused)
- 0, // threads
- 0, // OS priority
- 0, // Preemption subpriority
- 0, // Preemption priority
- RtecScheduler::OPERATION // info type
- },
- // 10 Hz low criticality consumer
- { "low_10_C", // entry point
- 0, // handle
- 0, // worst case execution time
- 0, // typical execution time (unused)
- 0, // cached execution time
- 0, // period (zero)
- RtecScheduler::LOW_CRITICALITY, // criticality
- RtecScheduler::HIGH_IMPORTANCE, // importance
- 0, // quantum (unused)
- 0, // threads
- 0, // OS priority
- 0, // Preemption subpriority
- 0, // Preemption priority
- RtecScheduler::OPERATION // info type
- },
- // 5 Hz high criticality consumer
- { "high_05_C", // entry point
- 0, // handle
- 0, // worst case execution time
- 0, // typical execution time (unused)
- 0, // cached execution time
- 0, // period (zero)
- RtecScheduler::HIGH_CRITICALITY, // criticality
- RtecScheduler::LOW_IMPORTANCE, // importance
- 0, // quantum (unused)
- 0, // threads
- 0, // OS priority
- 0, // Preemption subpriority
- 0, // Preemption priority
- RtecScheduler::OPERATION // info type
- },
- // 5 Hz low criticality consumer
- { "low_05_C", // entry point
- 0, // handle
- 0, // worst case execution time
- 0, // typical execution time (unused)
- 0, // cached execution time
- 0, // period (zero)
- RtecScheduler::LOW_CRITICALITY, // criticality
- RtecScheduler::HIGH_IMPORTANCE, // importance
- 0, // quantum (unused)
- 0, // threads
- 0, // OS priority
- 0, // Preemption subpriority
- 0, // Preemption priority
- RtecScheduler::OPERATION // info type
- },
- // 1 Hz high criticality consumer
- { "high_01_C", // entry point
- 0, // handle
- 0, // worst case execution time
- 0, // typical execution time (unused)
- 0, // cached execution time
- 0, // period (zero)
- RtecScheduler::HIGH_CRITICALITY, // criticality
- RtecScheduler::LOW_IMPORTANCE, // importance
- 0, // quantum (unused)
- 0, // threads
- 0, // OS priority
- 0, // Preemption subpriority
- 0, // Preemption priority
- RtecScheduler::OPERATION // info type
- },
- // 1 Hz low criticality consumer
- { "low_01_C", // entry point
- 0, // handle
- 0, // worst case execution time
- 0, // typical execution time (unused)
- 0, // cached execution time
- 0, // period (zero)
- RtecScheduler::LOW_CRITICALITY, // criticality
- RtecScheduler::HIGH_IMPORTANCE, // importance
- 0, // quantum (unused)
- 0, // threads
- 0, // OS priority
- 0, // Preemption subpriority
- 0, // Preemption priority
- RtecScheduler::OPERATION // info type
- }
- };
-
-
- TAO_TRY
- {
- // Initialize ORB.
- CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "internet", TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- CORBA::Object_var poa_object =
- orb->resolve_initial_references("RootPOA");
- if (CORBA::is_nil(poa_object.in ()))
- ACE_ERROR_RETURN ((LM_ERROR,
- " (%P|%t) Unable to initialize the POA.\n"),
- 1);
-
- PortableServer::POA_var root_poa =
- PortableServer::POA::_narrow (poa_object.in(), TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager (TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- // Initialize the naming services
- TAO_Naming_Client my_name_client;
- if (my_name_client.init (orb.in ()) != 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- " (%P|%t) Unable to initialize "
- "the TAO_Naming_Client. \n"),
- -1);
-
- if (ACE_Scheduler_Factory::use_config (my_name_client.get_context (),
- service_name) < 0)
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- " (%P|%t) Unable to bind to the scheduling service.\n"),
- 1);
- }
- // create and initialize RT_Infos in the scheduler,
- // make second half of array depend on first half.
- for (int i = 0; i < operation_count; ++i)
- {
- // create the RT_Info
- config_infos[i].handle =
- ACE_Scheduler_Factory::server ()->create (config_infos[i].entry_point,
- TAO_TRY_ENV);
-
- // initialize the RT_Info
- ACE_Scheduler_Factory::server ()->
- set (config_infos[i].handle,
- ACE_static_cast (RtecScheduler::Criticality_t, config_infos[i].criticality),
- config_infos[i].worst_case_execution_time,
- config_infos[i].typical_execution_time,
- config_infos[i].cached_execution_time,
- config_infos[i].period,
- ACE_static_cast (RtecScheduler::Importance_t, config_infos[i].importance),
- config_infos[i].quantum,
- config_infos[i].threads,
- ACE_static_cast (RtecScheduler::Info_Type_t, config_infos[i].info_type),
- TAO_TRY_ENV);
-
- // make operations in second half dependant on
- // operations in the first half of the array,
- // and have each called twice as a oneway call
- if (i >= (operation_count / 2))
- {
- ACE_Scheduler_Factory::server ()->
- add_dependency (config_infos[i].handle,
- config_infos[i - (operation_count / 2)].handle,
- 2, // number of calls
- RtecScheduler::ONE_WAY_CALL, // type of dependency
- TAO_TRY_ENV);
- }
- }
-
- RtecScheduler::RT_Info_Set_var infos;
- RtecScheduler::Config_Info_Set_var configs;
- RtecScheduler::Scheduling_Anomaly_Set_var anomalies;
-
-#if defined (__SUNPRO_CC)
- // Sun C++ 4.2 warns with the code below:
- // Warning (Anachronism): Temporary used for non-const
- // reference, now obsolete.
- // Note: Type "CC -migration" for more on anachronisms.
- // Warning (Anachronism): The copy constructor for argument
- // infos of type RtecScheduler::RT_Info_Set_out should take
- // const RtecScheduler::RT_Info_Set_out&.
- // But, this code is not CORBA conformant, because users should
- // not define instances of _out types.
-
- RtecScheduler::RT_Info_Set_out infos_out (infos);
- RtecScheduler::Config_Info_Set_out configs_out (configs);
- RtecScheduler::Scheduling_Anomaly_Set_out anomalies_out (anomalies);
- ACE_Scheduler_Factory::server ()->compute_scheduling
- (ACE_Sched_Params::priority_min (ACE_SCHED_FIFO,
- ACE_SCOPE_THREAD),
- ACE_Sched_Params::priority_max (ACE_SCHED_FIFO,
- ACE_SCOPE_THREAD),
- infos_out, configs_out, anomalies_out, TAO_TRY_ENV);
-#else /* ! __SUNPRO_CC */
- ACE_Scheduler_Factory::server ()->compute_scheduling
- (ACE_Sched_Params::priority_min (ACE_SCHED_FIFO,
- ACE_SCOPE_THREAD),
- ACE_Sched_Params::priority_max (ACE_SCHED_FIFO,
- ACE_SCOPE_THREAD),
- infos.out (), configs.out (), anomalies.out (), TAO_TRY_ENV);
-#endif /* ! __SUNPRO_CC */
-
- TAO_CHECK_ENV;
-
- ACE_Scheduler_Factory::dump_schedule (infos.in (),
- configs.in (),
- anomalies.in (),
- "Sched_Conf_Runtime.h",
- format_string);
- }
- TAO_CATCH (CORBA::SystemException, sys_ex)
- {
- TAO_TRY_ENV.print_exception ("SYS_EX");
- }
- TAO_ENDTRY;
-
- return 0;
-}
diff --git a/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf.dsp b/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf.dsp
deleted file mode 100644
index fa1d0de9124..00000000000
--- a/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf.dsp
+++ /dev/null
@@ -1,92 +0,0 @@
-# Microsoft Developer Studio Project File - Name="Sched_Conf" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "Win32 (x86) Console Application" 0x0103
-
-CFG=Sched_Conf - Win32 Debug
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE
-!MESSAGE NMAKE /f "Sched_Conf.mak".
-!MESSAGE
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "Sched_Conf.mak" CFG="Sched_Conf - Win32 Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "Sched_Conf - Win32 Release" (based on\
- "Win32 (x86) Console Application")
-!MESSAGE "Sched_Conf - Win32 Debug" (based on\
- "Win32 (x86) Console Application")
-!MESSAGE
-
-# Begin Project
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "Sched_Conf - Win32 Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir "Release"
-# PROP Intermediate_Dir "Release"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD BASE RSC /l 0x409 /d "NDEBUG"
-# ADD RSC /l 0x409 /d "NDEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 orbsvcs.lib TAO.lib ace.lib /nologo /subsystem:console /machine:I386 /out:"Sched_Conf.exe"
-
-!ELSEIF "$(CFG)" == "Sched_Conf - Win32 Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "Debug"
-# PROP BASE Intermediate_Dir "Debug"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir ""
-# PROP Intermediate_Dir "Debug"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "..\..\\" /I "..\..\..\\" /I "..\..\..\..\\" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /D TAO_ORBSVCS_HAS_DLL=1 /FD /c
-# SUBTRACT CPP /YX
-# ADD BASE RSC /l 0x409 /d "_DEBUG"
-# ADD RSC /l 0x409 /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
-# ADD LINK32 orbsvcsd.lib TAOd.lib aced.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\..\orbsvcs" /libpath:"..\..\..\tao" /libpath:"..\..\..\..\ace"
-
-!ENDIF
-
-# Begin Target
-
-# Name "Sched_Conf - Win32 Release"
-# Name "Sched_Conf - Win32 Debug"
-# Begin Source File
-
-SOURCE=.\Sched_Conf.cpp
-# End Source File
-# End Target
-# End Project
diff --git a/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf.dsw b/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf.dsw
deleted file mode 100644
index 829c4735f1e..00000000000
--- a/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf.dsw
+++ /dev/null
@@ -1,56 +0,0 @@
-Microsoft Developer Studio Workspace File, Format Version 6.00
-# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
-
-###############################################################################
-
-Project: "Sched_Conf"=.\Sched_Conf.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Project: "Sched_Conf_Anomalies"=.\Sched_Conf_Anomalies.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Project: "Sched_Conf_Runtime"=.\Sched_Conf_Runtime.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
- Begin Project Dependency
- Project_Dep_Name Sched_Conf
- End Project Dependency
-}}}
-
-###############################################################################
-
-Global:
-
-Package=<5>
-{{{
-}}}
-
-Package=<3>
-{{{
-}}}
-
-###############################################################################
-
diff --git a/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf_Anomalies.cpp b/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf_Anomalies.cpp
deleted file mode 100644
index a41bbff05c8..00000000000
--- a/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf_Anomalies.cpp
+++ /dev/null
@@ -1,388 +0,0 @@
-// $Id$
-
-// This program performa a simple scheduler configuration run,
-// and dumps the results of one scheduling into a C++ header file.
-
-#include "ace/Sched_Params.h"
-#include "ace/Get_Opt.h"
-#include "tao/corba.h"
-
-#include "orbsvcs/CosNamingC.h"
-#include "orbsvcs/Scheduler_Factory.h"
-#include "orbsvcs/Naming/Naming_Utils.h"
-
-ACE_RCSID(Sched_Conf, Sched_Conf_Anomalies, "$Id$")
-
-const char* service_name = "ScheduleService";
-
-const char* format_string = "{%-12s, %d, %d, %d, %d, %8d, "
- "ACE_static_cast (RtecScheduler::Criticality_t, %d), "
- "ACE_static_cast (RtecScheduler::Importance_t, %d), "
- "%d, %d, %3d, %d, %d, "
- "ACE_static_cast (RtecScheduler::Info_Type_t, %d)}\n";
-
-int
-parse_args (int argc, char *argv [])
-{
- ACE_Get_Opt get_opt (argc, argv, "n:");
- int opt;
-
- while ((opt = get_opt ()) != EOF)
- {
- switch (opt)
- {
- case 'n':
- service_name = get_opt.optarg;
- break;
- case '?':
- default:
- ACE_DEBUG ((LM_DEBUG,
- "Usage: %s "
- "-n service_name "
- "\n",
- argv[0]));
- return -1;
- }
- }
-
- return 0;
-}
-
-int
-main (int argc, char *argv[])
-{
- if (parse_args (argc, argv) != 0)
- {
- return 1;
- }
-
- // create initial data for supplier and consumer operations
- const int operation_count = 8;
- ACE_Scheduler_Factory::POD_RT_Info config_infos[operation_count] = {
- // good supplier (no unresolved dependencies)
- { "good_supplier", // entry point
- 0, // handle
- 5000, // worst case execution time
- 5000, // typical execution time (unused)
- 5000, // cached execution time
- 500000, // period (100 ns)
- RtecScheduler::HIGH_CRITICALITY, // criticality
- RtecScheduler::LOW_IMPORTANCE, // importance
- 0, // quantum (unused)
- 1, // threads
- 0, // OS priority
- 0, // Preemption subpriority
- 0, // Preemption priority
- RtecScheduler::OPERATION // info type
- },
- // good consumer (no unresolved dependencies)
- { "good_consumer", // entry point
- 1, // handle
- 5000, // worst case execution time
- 5000, // typical execution time (unused)
- 5000, // cached execution time
- 0, // period (100 ns)
- RtecScheduler::HIGH_CRITICALITY, // criticality
- RtecScheduler::LOW_IMPORTANCE, // importance
- 0, // quantum (unused)
- 0, // threads
- 0, // OS priority
- 0, // Preemption subpriority
- 0, // Preemption priority
- RtecScheduler::OPERATION // info type
- },
- // supplier with unresolved remote dependencies
- { "unresolved_remote_supplier", // entry point
- 2, // handle
- 5000, // worst case execution time
- 5000, // typical execution time (unused)
- 5000, // cached execution time
- 0, // period (100 ns)
- RtecScheduler::HIGH_CRITICALITY, // criticality
- RtecScheduler::LOW_IMPORTANCE, // importance
- 0, // quantum (unused)
- 0, // threads
- 0, // OS priority
- 0, // Preemption subpriority
- 0, // Preemption priority
- RtecScheduler::REMOTE_DEPENDANT // info type
- },
- // consumer with unresolved remote dependencies
- { "unresolved_remote_consumer", // entry point
- 3, // handle
- 5000, // worst case execution time
- 5000, // typical execution time (unused)
- 5000, // cached execution time
- 0, // period (100 ns)
- RtecScheduler::HIGH_CRITICALITY, // criticality
- RtecScheduler::LOW_IMPORTANCE, // importance
- 0, // quantum (unused)
- 0, // threads
- 0, // OS priority
- 0, // Preemption subpriority
- 0, // Preemption priority
- RtecScheduler::OPERATION // info type
- },
- // supplier with unresolved local dependencies
- { "unresolved_local_supplier", // entry point
- 4, // handle
- 5000, // worst case execution time
- 5000, // typical execution time (unused)
- 5000, // cached execution time
- 0, // period (100 ns)
- RtecScheduler::HIGH_CRITICALITY, // criticality
- RtecScheduler::LOW_IMPORTANCE, // importance
- 0, // quantum (unused)
- 0, // threads
- 0, // OS priority
- 0, // Preemption subpriority
- 0, // Preemption priority
- RtecScheduler::OPERATION // info type
- },
- // consumer with unresolved local dependencies
- { "unresolved_local_consumer", // entry point
- 5, // handle
- 5000, // worst case execution time
- 5000, // typical execution time (unused)
- 5000, // cached execution time
- 0, // period (100 ns)
- RtecScheduler::HIGH_CRITICALITY, // criticality
- RtecScheduler::LOW_IMPORTANCE, // importance
- 0, // quantum (unused)
- 0, // threads
- 0, // OS priority
- 0, // Preemption subpriority
- 0, // Preemption priority
- RtecScheduler::OPERATION // info type
- },
- // consumer with unresolved local and remote dependencies
- { "both_unresolved_consumer_1", // entry point
- 6, // handle
- 5000, // worst case execution time
- 5000, // typical execution time (unused)
- 5000, // cached execution time
- 0, // period (100 ns)
- RtecScheduler::HIGH_CRITICALITY, // criticality
- RtecScheduler::LOW_IMPORTANCE, // importance
- 0, // quantum (unused)
- 0, // threads
- 0, // OS priority
- 0, // Preemption subpriority
- 0, // Preemption priority
- RtecScheduler::OPERATION // info type
- },
- // another consumer with unresolved
- // local and remote dependencies
- { "both_unresolved_consumer_2", // entry point
- 7, // handle
- 5000, // worst case execution time
- 5000, // typical execution time (unused)
- 5000, // cached execution time
- 0, // period (100 ns)
- RtecScheduler::HIGH_CRITICALITY, // criticality
- RtecScheduler::LOW_IMPORTANCE, // importance
- 0, // quantum (unused)
- 0, // threads
- 0, // OS priority
- 0, // Preemption subpriority
- 0, // Preemption priority
- RtecScheduler::OPERATION // info type
- }
- };
-
-
- TAO_TRY
- {
- // Initialize ORB.
- CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "internet", TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- CORBA::Object_var poa_object =
- orb->resolve_initial_references("RootPOA");
- if (CORBA::is_nil(poa_object.in ()))
- ACE_ERROR_RETURN ((LM_ERROR,
- " (%P|%t) Unable to initialize the POA.\n"),
- 1);
-
- PortableServer::POA_var root_poa =
- PortableServer::POA::_narrow (poa_object.in(), TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager (TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- // Initialize the naming services
- TAO_Naming_Client my_name_client;
- if (my_name_client.init (orb.in ()) != 0)
- ACE_ERROR_RETURN ((LM_ERROR,
- " (%P|%t) Unable to initialize "
- "the TAO_Naming_Client. \n"),
- -1);
-
- if (ACE_Scheduler_Factory::use_config (my_name_client.get_context (),
- service_name) < 0)
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- " (%P|%t) Unable to bind to the scheduling service.\n"),
- 1);
- }
- // create and initialize RT_Infos in the scheduler,
- // make second half of array depend on first half.
- for (int i = 0; i < operation_count; ++i)
- {
- // create the RT_Info
- config_infos[i].handle =
- ACE_Scheduler_Factory::server ()->create (config_infos[i].entry_point,
- TAO_TRY_ENV);
-
- // initialize the RT_Info
- ACE_Scheduler_Factory::server ()->
- set (config_infos[i].handle,
- ACE_static_cast (RtecScheduler::Criticality_t,
- config_infos[i].criticality),
- config_infos[i].worst_case_execution_time,
- config_infos[i].typical_execution_time,
- config_infos[i].cached_execution_time,
- config_infos[i].period,
- ACE_static_cast (RtecScheduler::Importance_t,
- config_infos[i].importance),
- config_infos[i].quantum,
- config_infos[i].threads,
- ACE_static_cast (RtecScheduler::Info_Type_t,
- config_infos[i].info_type),
- TAO_TRY_ENV);
- }
-
-
- // register dependency of good consumer on good supplier
- ACE_Scheduler_Factory::server ()->
- add_dependency (config_infos[1].handle,
- config_infos[0].handle,
- 1, // number of calls
- RtecScheduler::ONE_WAY_CALL, // type of dependency
- TAO_TRY_ENV);
-
- // register dependency of consumer that will have unresolved remote
- // dependencies on supplier with unresolved remote dependencies
- ACE_Scheduler_Factory::server ()->
- add_dependency (config_infos[3].handle,
- config_infos[2].handle,
- 1, // number of calls
- RtecScheduler::ONE_WAY_CALL, // type of dependency
- TAO_TRY_ENV);
-
-
- // register dependency of consumer that will have unresolved local
- // dependencies on supplier with unresolved local dependencies
- ACE_Scheduler_Factory::server ()->
- add_dependency (config_infos[5].handle,
- config_infos[4].handle,
- 1, // number of calls
- RtecScheduler::ONE_WAY_CALL, // type of dependency
- TAO_TRY_ENV);
-
-
- // register dependencies on each supplier of first consumer that will
- // have both unresolved local and unresolved remote dependencies.
- ACE_Scheduler_Factory::server ()->
- add_dependency (config_infos[6].handle,
- config_infos[0].handle,
- 1, // number of calls
- RtecScheduler::ONE_WAY_CALL, // type of dependency
- TAO_TRY_ENV);
- ACE_Scheduler_Factory::server ()->
- add_dependency (config_infos[6].handle,
- config_infos[2].handle,
- 1, // number of calls
- RtecScheduler::ONE_WAY_CALL, // type of dependency
- TAO_TRY_ENV);
- ACE_Scheduler_Factory::server ()->
- add_dependency (config_infos[6].handle,
- config_infos[4].handle,
- 1, // number of calls
- RtecScheduler::ONE_WAY_CALL, // type of dependency
- TAO_TRY_ENV);
-
-
- // Register dependencies on each of the other consumers by second
- // consumer that will have both unresolved local and unresolved remote
- // dependencies.
- ACE_Scheduler_Factory::server ()->
- add_dependency (config_infos[7].handle,
- config_infos[1].handle,
- 1, // number of calls
- RtecScheduler::ONE_WAY_CALL, // type of dependency
- TAO_TRY_ENV);
- ACE_Scheduler_Factory::server ()->
- add_dependency (config_infos[7].handle,
- config_infos[3].handle,
- 1, // number of calls
- RtecScheduler::ONE_WAY_CALL, // type of dependency
- TAO_TRY_ENV);
- ACE_Scheduler_Factory::server ()->
- add_dependency (config_infos[7].handle,
- config_infos[5].handle,
- 1, // number of calls
- RtecScheduler::ONE_WAY_CALL, // type of dependency
- TAO_TRY_ENV);
- ACE_Scheduler_Factory::server ()->
- add_dependency (config_infos[7].handle,
- config_infos[6].handle,
- 1, // number of calls
- RtecScheduler::ONE_WAY_CALL, // type of dependency
- TAO_TRY_ENV);
-
-
- RtecScheduler::RT_Info_Set_var infos;
- RtecScheduler::Config_Info_Set_var configs;
- RtecScheduler::Scheduling_Anomaly_Set_var anomalies;
-
-#if defined (__SUNPRO_CC)
- // Sun C++ 4.2 warns with the code below:
- // Warning (Anachronism): Temporary used for non-const
- // reference, now obsolete.
- // Note: Type "CC -migration" for more on anachronisms.
- // Warning (Anachronism): The copy constructor for argument
- // infos of type RtecScheduler::RT_Info_Set_out should take
- // const RtecScheduler::RT_Info_Set_out&.
- // But, this code is not CORBA conformant, because users should
- // not define instances of _out types.
-
- RtecScheduler::RT_Info_Set_out infos_out (infos);
- RtecScheduler::Config_Info_Set_out configs_out (configs);
- RtecScheduler::Scheduling_Anomaly_Set_out anomalies_out (anomalies);
- ACE_Scheduler_Factory::server ()->compute_scheduling
- (ACE_Sched_Params::priority_min (ACE_SCHED_FIFO,
- ACE_SCOPE_THREAD),
- ACE_Sched_Params::priority_max (ACE_SCHED_FIFO,
- ACE_SCOPE_THREAD),
- infos_out, configs_out, anomalies_out, TAO_TRY_ENV);
-#else /* ! __SUNPRO_CC */
- ACE_Scheduler_Factory::server ()->compute_scheduling
- (ACE_Sched_Params::priority_min (ACE_SCHED_FIFO,
- ACE_SCOPE_THREAD),
- ACE_Sched_Params::priority_max (ACE_SCHED_FIFO,
- ACE_SCOPE_THREAD),
- infos.out (), configs.out (), anomalies.out (), TAO_TRY_ENV);
-#endif /* ! __SUNPRO_CC */
-
- TAO_CHECK_ENV;
-
- ACE_Scheduler_Factory::dump_schedule (infos.in (),
- configs.in (),
- anomalies.in (),
- "Sched_Conf_Anomalies_Runtime.h",
- format_string);
- }
- TAO_CATCH (CORBA::SystemException, sys_ex)
- {
- TAO_TRY_ENV.print_exception ("SYS_EX");
- }
- TAO_ENDTRY;
-
- return 0;
-}
-
-
diff --git a/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf_Anomalies.dsp b/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf_Anomalies.dsp
deleted file mode 100644
index f7e9d6bad1d..00000000000
--- a/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf_Anomalies.dsp
+++ /dev/null
@@ -1,102 +0,0 @@
-# Microsoft Developer Studio Project File - Name="Sched_Conf_Anomalies" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "Win32 (x86) Console Application" 0x0103
-
-CFG=Sched_Conf_Anomalies - Win32 Debug
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE
-!MESSAGE NMAKE /f "Sched_Conf_Anomalies.mak".
-!MESSAGE
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "Sched_Conf_Anomalies.mak" CFG="Sched_Conf_Anomalies - Win32 Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "Sched_Conf_Anomalies - Win32 Release" (based on "Win32 (x86) Console Application")
-!MESSAGE "Sched_Conf_Anomalies - Win32 Debug" (based on "Win32 (x86) Console Application")
-!MESSAGE
-
-# Begin Project
-# PROP AllowPerConfigDependencies 0
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "Sched_Conf_Anomalies - Win32 Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir "Release"
-# PROP Intermediate_Dir "Release"
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD BASE RSC /l 0x409 /d "NDEBUG"
-# ADD RSC /l 0x409 /d "NDEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-
-!ELSEIF "$(CFG)" == "Sched_Conf_Anomalies - Win32 Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "Sched_Conf_Anomalies___Win32_Debug"
-# PROP BASE Intermediate_Dir "Sched_Conf_Anomalies___Win32_Debug"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir ""
-# PROP Intermediate_Dir "Debug"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
-# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "..\..\\" /I "..\..\..\\" /I "..\..\..\..\\" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /D TAO_ORBSVCS_HAS_DLL=1 /FD /GZ /c
-# SUBTRACT CPP /YX
-# ADD BASE RSC /l 0x409 /d "_DEBUG"
-# ADD RSC /l 0x409 /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
-# ADD LINK32 orbsvcsd.lib TAOd.lib aced.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\..\orbsvcs" /libpath:"..\..\..\tao" /libpath:"..\..\..\..\ace"
-
-!ENDIF
-
-# Begin Target
-
-# Name "Sched_Conf_Anomalies - Win32 Release"
-# Name "Sched_Conf_Anomalies - Win32 Debug"
-# Begin Group "Source Files"
-
-# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
-# Begin Source File
-
-SOURCE=.\Sched_Conf_Anomalies.cpp
-# End Source File
-# End Group
-# Begin Group "Header Files"
-
-# PROP Default_Filter "h;hpp;hxx;hm;inl"
-# End Group
-# Begin Group "Resource Files"
-
-# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
-# End Group
-# End Target
-# End Project
diff --git a/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf_Anomalies_Runtime.h b/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf_Anomalies_Runtime.h
deleted file mode 100644
index ef7d87eadb1..00000000000
--- a/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf_Anomalies_Runtime.h
+++ /dev/null
@@ -1,59 +0,0 @@
-// $Id $
-
-// This file was automatically generated by the Scheduler_Factory.
-// Before editing the file please consider generating it again.
-
-#include "orbsvcs/Scheduler_Factory.h"
-
-
-// The following scheduling anomalies were detected:
-ERROR: ST_UNRESOLVED_LOCAL_DEPENDENCIES
-ERROR: The following entry points have unresolved local dependencies:
-// unresolved_local_supplier
-// unresolved_local_consumer
-// both_unresolved_consumer_1
-// both_unresolved_consumer_2
-
-// WARNING: ST_UNRESOLVED_REMOTE_DEPENDENCIES
-// WARNING: The following entry points have unresolved remote dependencies:
-// unresolved_remote_supplier
-// unresolved_remote_consumer
-// both_unresolved_consumer_1
-// both_unresolved_consumer_2
-
-
-
-static ACE_Scheduler_Factory::POD_RT_Info infos[] = {
-{"good_supplier", 1, 5000, 5000, 5000, 500000, (RtecScheduler::Criticality_t) 3, (RtecScheduler::Importance_t) 1, 0, 1, 15, 0, 0, (RtecScheduler::Info_Type_t) 0}
-,
-{"good_consumer", 2, 5000, 5000, 5000, 0, (RtecScheduler::Criticality_t) 3, (RtecScheduler::Importance_t) 1, 0, 0, 15, 1, 0, (RtecScheduler::Info_Type_t) 0}
-,
-{"unresolved_remote_supplier", 3, 5000, 5000, 5000, 0, (RtecScheduler::Criticality_t) 3, (RtecScheduler::Importance_t) 1, 0, 0, 0, 0, 0, (RtecScheduler::Info_Type_t) 3}
-,
-{"unresolved_remote_consumer", 4, 5000, 5000, 5000, 0, (RtecScheduler::Criticality_t) 3, (RtecScheduler::Importance_t) 1, 0, 0, 0, 0, 0, (RtecScheduler::Info_Type_t) 0}
-,
-{"unresolved_local_supplier", 5, 5000, 5000, 5000, 0, (RtecScheduler::Criticality_t) 3, (RtecScheduler::Importance_t) 1, 0, 0, 0, 0, 0, (RtecScheduler::Info_Type_t) 0}
-,
-{"unresolved_local_consumer", 6, 5000, 5000, 5000, 0, (RtecScheduler::Criticality_t) 3, (RtecScheduler::Importance_t) 1, 0, 0, 0, 0, 0, (RtecScheduler::Info_Type_t) 0}
-,
-{"both_unresolved_consumer_1", 7, 5000, 5000, 5000, 0, (RtecScheduler::Criticality_t) 3, (RtecScheduler::Importance_t) 1, 0, 0, 0, 0, 0, (RtecScheduler::Info_Type_t) 0}
-,
-{"both_unresolved_consumer_2", 8, 5000, 5000, 5000, 0, (RtecScheduler::Criticality_t) 3, (RtecScheduler::Importance_t) 1, 0, 0, 0, 0, 0, (RtecScheduler::Info_Type_t) 0}
-
-};
-
-static int infos_size = sizeof(infos)/sizeof(infos[0]);
-
-
-static ACE_Scheduler_Factory::POD_Config_Info configs[] = {
- { 0, 15, (RtecScheduler::Dispatching_Type_t) 2 }
-};
-
-static int configs_size = sizeof(configs)/sizeof(configs[0]);
-
-
-// This sets up Scheduler_Factory to use the runtime version.
-int scheduler_factory_setup =
- ACE_Scheduler_Factory::use_runtime (configs_size, configs, infos_size, infos);
-
-// EOF
diff --git a/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf_Runtime.cpp b/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf_Runtime.cpp
deleted file mode 100644
index 2c0bd902827..00000000000
--- a/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf_Runtime.cpp
+++ /dev/null
@@ -1,160 +0,0 @@
-// $Id$
-
-// This program exercises a run-time scheduler,
-// using the config run generated C++ header file.
-
-#include "ace/Sched_Params.h"
-#include "ace/Get_Opt.h"
-#include "tao/corba.h"
-
-#include "orbsvcs/CosNamingC.h"
-#include "orbsvcs/Scheduler_Factory.h"
-#include "orbsvcs/Naming/Naming_Utils.h"
-
-#include "Sched_Conf_Runtime.h"
-
-ACE_RCSID(Sched_Conf, Sched_Conf_Runtime, "$Id$")
-
-
-
-int
-main (int argc, char *argv[])
-{
- TAO_TRY
- {
- // Initialize ORB.
- CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "internet", TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- CORBA::Object_var poa_object =
- orb->resolve_initial_references("RootPOA");
- if (CORBA::is_nil(poa_object.in ()))
- ACE_ERROR_RETURN ((LM_ERROR,
- " (%P|%t) Unable to initialize the POA.\n"),
- 1);
-
- PortableServer::POA_var root_poa =
- PortableServer::POA::_narrow (poa_object.in(), TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- PortableServer::POAManager_var poa_manager =
- root_poa->the_POAManager (TAO_TRY_ENV);
- TAO_CHECK_ENV;
-
- // Store a pointer to the local run-time scheduler.
- RtecScheduler::Scheduler_ptr runtime_scheduler =
- ACE_Scheduler_Factory::server ();
-
- // Some useful variables for retrieving values from the scheduler.
- RtecScheduler::RT_Info *rt_info = 0;
- RtecScheduler::OS_Priority priority;
- RtecScheduler::Preemption_Subpriority_t subpriority;
- RtecScheduler::Preemption_Priority_t p_priority;
- RtecScheduler::Dispatching_Type_t dispatching_type;
-
- for (int i = 0; i < infos_size; ++i)
- {
- // Make sure the correct handle is returned by the
- // run-time scheduler's create and lookup methods.
- ACE_ASSERT (infos [i].handle ==
- runtime_scheduler->create (infos [i].entry_point,
- TAO_TRY_ENV));
- ACE_ASSERT (infos [i].handle ==
- runtime_scheduler->lookup (infos [i].entry_point,
- TAO_TRY_ENV));
-
- // Make sure the values in the RT_Info returned by get are OK.
- delete rt_info;
- rt_info = runtime_scheduler->get (infos [i].handle,
- TAO_TRY_ENV);
- ACE_ASSERT (rt_info != 0);
- ACE_ASSERT (ACE_OS::strcmp (rt_info->entry_point,
- infos [i].entry_point) == 0);
- ACE_ASSERT (rt_info->handle ==
- infos [i].handle);
- ACE_ASSERT (rt_info->worst_case_execution_time ==
- infos [i].worst_case_execution_time);
- ACE_ASSERT (rt_info->typical_execution_time ==
- infos [i].typical_execution_time);
- ACE_ASSERT (rt_info->cached_execution_time ==
- infos [i].cached_execution_time);
- ACE_ASSERT (rt_info->period ==
- infos [i].period);
- ACE_ASSERT (rt_info->criticality ==
- ACE_static_cast (RtecScheduler::Criticality_t, infos [i].criticality));
- ACE_ASSERT (rt_info->importance ==
- ACE_static_cast (RtecScheduler::Importance_t, infos [i].importance));
- ACE_ASSERT (rt_info->quantum ==
- infos [i].quantum);
- ACE_ASSERT (rt_info->threads ==
- infos [i].threads);
- ACE_ASSERT (rt_info->priority ==
- infos [i].priority);
- ACE_ASSERT (rt_info->preemption_subpriority ==
- infos [i].static_subpriority);
- ACE_ASSERT (rt_info->preemption_priority ==
- infos [i].preemption_priority);
- ACE_ASSERT (rt_info->info_type ==
- ACE_static_cast (RtecScheduler::Info_Type_t, infos [i].info_type));
-
- // Make sure the values in the scheduler's internal RT_Info are OK.
- // Scheduler will generate messages if any values don't match.
- runtime_scheduler->set (infos [i].handle,
- ACE_static_cast (RtecScheduler::Criticality_t,
- infos [i].criticality),
- infos [i].worst_case_execution_time,
- infos [i].typical_execution_time,
- infos [i].cached_execution_time,
- infos [i].period,
- ACE_static_cast (RtecScheduler::Importance_t,
- infos [i].importance),
- infos [i].quantum,
- infos [i].threads,
- ACE_static_cast (RtecScheduler::Info_Type_t,
- infos [i].info_type),
- TAO_TRY_ENV);
-
- // Make sure the correct priority values are returned.
- runtime_scheduler->priority (infos [i].handle,
- priority,
- subpriority,
- p_priority,
- TAO_TRY_ENV);
- ACE_ASSERT (priority == infos [i].priority);
- ACE_ASSERT (subpriority == infos [i].static_subpriority);
- ACE_ASSERT (p_priority == infos [i].preemption_priority);
- runtime_scheduler->entry_point_priority (infos [i].entry_point,
- priority,
- subpriority,
- p_priority,
- TAO_TRY_ENV);
- ACE_ASSERT (priority == infos [i].priority);
- ACE_ASSERT (subpriority == infos [i].static_subpriority);
- ACE_ASSERT (p_priority == infos [i].preemption_priority);
- }
-
- for (int j = 0; j < configs_size; ++j)
- {
- // Make sure the correct preemption priority is stored.
- ACE_ASSERT (j == configs [j].preemption_priority);
-
- // Make sure the correct queue configuration values are returned.
- runtime_scheduler->
- dispatch_configuration (configs [j].preemption_priority,
- priority,
- dispatching_type,
- TAO_TRY_ENV);
- ACE_ASSERT (priority == configs [j].thread_priority);
- ACE_ASSERT (dispatching_type == configs [j].dispatching_type);
-
- }
- }
- TAO_CATCH (CORBA::SystemException, sys_ex)
- {
- TAO_TRY_ENV.print_exception ("SYS_EX");
- }
- TAO_ENDTRY;
-
- return 0;
-}
diff --git a/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf_Runtime.dsp b/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf_Runtime.dsp
deleted file mode 100644
index f58ec0ec629..00000000000
--- a/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf_Runtime.dsp
+++ /dev/null
@@ -1,96 +0,0 @@
-# Microsoft Developer Studio Project File - Name="Sched_Conf_Runtime" - Package Owner=<4>
-# Microsoft Developer Studio Generated Build File, Format Version 6.00
-# ** DO NOT EDIT **
-
-# TARGTYPE "Win32 (x86) Console Application" 0x0103
-
-CFG=Sched_Conf_Runtime - Win32 Debug
-!MESSAGE This is not a valid makefile. To build this project using NMAKE,
-!MESSAGE use the Export Makefile command and run
-!MESSAGE
-!MESSAGE NMAKE /f "Sched_Conf_Runtime.mak".
-!MESSAGE
-!MESSAGE You can specify a configuration when running NMAKE
-!MESSAGE by defining the macro CFG on the command line. For example:
-!MESSAGE
-!MESSAGE NMAKE /f "Sched_Conf_Runtime.mak"\
- CFG="Sched_Conf_Runtime - Win32 Debug"
-!MESSAGE
-!MESSAGE Possible choices for configuration are:
-!MESSAGE
-!MESSAGE "Sched_Conf_Runtime - Win32 Release" (based on\
- "Win32 (x86) Console Application")
-!MESSAGE "Sched_Conf_Runtime - Win32 Debug" (based on\
- "Win32 (x86) Console Application")
-!MESSAGE
-
-# Begin Project
-# PROP Scc_ProjName ""
-# PROP Scc_LocalPath ""
-CPP=cl.exe
-RSC=rc.exe
-
-!IF "$(CFG)" == "Sched_Conf_Runtime - Win32 Release"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 0
-# PROP BASE Output_Dir "Release"
-# PROP BASE Intermediate_Dir "Release"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 0
-# PROP Output_Dir "Release"
-# PROP Intermediate_Dir "Release"
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD BASE RSC /l 0x409 /d "NDEBUG"
-# ADD RSC /l 0x409 /d "NDEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
-
-!ELSEIF "$(CFG)" == "Sched_Conf_Runtime - Win32 Debug"
-
-# PROP BASE Use_MFC 0
-# PROP BASE Use_Debug_Libraries 1
-# PROP BASE Output_Dir "Sched_Co"
-# PROP BASE Intermediate_Dir "Sched_Co"
-# PROP BASE Target_Dir ""
-# PROP Use_MFC 0
-# PROP Use_Debug_Libraries 1
-# PROP Output_Dir ""
-# PROP Intermediate_Dir "Debug"
-# PROP Ignore_Export_Lib 0
-# PROP Target_Dir ""
-# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
-# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "..\..\\" /I "..\..\..\\" /I "..\..\..\..\\" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /D TAO_ORBSVCS_HAS_DLL=1 /FD /c
-# SUBTRACT CPP /YX
-# ADD BASE RSC /l 0x409 /d "_DEBUG"
-# ADD RSC /l 0x409 /d "_DEBUG"
-BSC32=bscmake.exe
-# ADD BASE BSC32 /nologo
-# ADD BSC32 /nologo
-LINK32=link.exe
-# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
-# ADD LINK32 orbsvcsd.lib TAOd.lib aced.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept /libpath:"..\..\orbsvcs" /libpath:"..\..\..\tao" /libpath:"..\..\..\..\ace"
-
-!ENDIF
-
-# Begin Target
-
-# Name "Sched_Conf_Runtime - Win32 Release"
-# Name "Sched_Conf_Runtime - Win32 Debug"
-# Begin Source File
-
-SOURCE=.\Sched_Conf_Runtime.cpp
-# End Source File
-# Begin Source File
-
-SOURCE=.\Sched_Conf_Runtime.h
-# End Source File
-# End Target
-# End Project
diff --git a/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf_Runtime.h b/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf_Runtime.h
deleted file mode 100644
index e45231075a3..00000000000
--- a/TAO/orbsvcs/tests/Sched_Conf/Sched_Conf_Runtime.h
+++ /dev/null
@@ -1,62 +0,0 @@
-// $Id $
-
-// This file was automatically generated by the Scheduler_Factory.
-// Before editing the file please consider generating it again.
-
-#include "orbsvcs/Scheduler_Factory.h"
-
-
-// There were no scheduling anomalies.
-
-
-static ACE_Scheduler_Factory::POD_RT_Info infos[] = {
-{"high_20_S" , 1, 5000, 5000, 5000, 500000, (RtecScheduler::Criticality_t) 3, (RtecScheduler::Importance_t) 1, 0, 1, 15, 11, 0, (RtecScheduler::Info_Type_t) 0}
-,
-{"low_20_S" , 2, 5000, 5000, 5000, 500000, (RtecScheduler::Criticality_t) 1, (RtecScheduler::Importance_t) 3, 0, 1, 2, 11, 1, (RtecScheduler::Info_Type_t) 0}
-,
-{"high_10_S" , 3, 10000, 10000, 10000, 1000000, (RtecScheduler::Criticality_t) 3, (RtecScheduler::Importance_t) 1, 0, 1, 15, 8, 0, (RtecScheduler::Info_Type_t) 0}
-,
-{"low_10_S" , 4, 10000, 10000, 10000, 1000000, (RtecScheduler::Criticality_t) 1, (RtecScheduler::Importance_t) 3, 0, 1, 2, 8, 1, (RtecScheduler::Info_Type_t) 0}
-,
-{"high_05_S" , 5, 20000, 20000, 20000, 2000000, (RtecScheduler::Criticality_t) 3, (RtecScheduler::Importance_t) 1, 0, 1, 15, 5, 0, (RtecScheduler::Info_Type_t) 0}
-,
-{"low_05_S" , 6, 20000, 20000, 20000, 2000000, (RtecScheduler::Criticality_t) 1, (RtecScheduler::Importance_t) 3, 0, 1, 2, 5, 1, (RtecScheduler::Info_Type_t) 0}
-,
-{"high_01_S" , 7, 100000, 100000, 100000, 10000000, (RtecScheduler::Criticality_t) 3, (RtecScheduler::Importance_t) 1, 0, 0, 15, 2, 0, (RtecScheduler::Info_Type_t) 0}
-,
-{"low_01_S" , 8, 100000, 100000, 100000, 10000000, (RtecScheduler::Criticality_t) 1, (RtecScheduler::Importance_t) 3, 0, 0, 2, 2, 1, (RtecScheduler::Info_Type_t) 0}
-,
-{"high_20_C" , 9, 0, 0, 0, 0, (RtecScheduler::Criticality_t) 3, (RtecScheduler::Importance_t) 1, 0, 0, 15, 9, 0, (RtecScheduler::Info_Type_t) 0}
-,
-{"low_20_C" , 10, 0, 0, 0, 0, (RtecScheduler::Criticality_t) 1, (RtecScheduler::Importance_t) 3, 0, 0, 2, 9, 1, (RtecScheduler::Info_Type_t) 0}
-,
-{"high_10_C" , 11, 0, 0, 0, 0, (RtecScheduler::Criticality_t) 3, (RtecScheduler::Importance_t) 1, 0, 0, 15, 6, 0, (RtecScheduler::Info_Type_t) 0}
-,
-{"low_10_C" , 12, 0, 0, 0, 0, (RtecScheduler::Criticality_t) 1, (RtecScheduler::Importance_t) 3, 0, 0, 2, 6, 1, (RtecScheduler::Info_Type_t) 0}
-,
-{"high_05_C" , 13, 0, 0, 0, 0, (RtecScheduler::Criticality_t) 3, (RtecScheduler::Importance_t) 1, 0, 0, 15, 3, 0, (RtecScheduler::Info_Type_t) 0}
-,
-{"low_05_C" , 14, 0, 0, 0, 0, (RtecScheduler::Criticality_t) 1, (RtecScheduler::Importance_t) 3, 0, 0, 2, 3, 1, (RtecScheduler::Info_Type_t) 0}
-,
-{"high_01_C" , 15, 0, 0, 0, 0, (RtecScheduler::Criticality_t) 3, (RtecScheduler::Importance_t) 1, 0, 0, 15, 0, 0, (RtecScheduler::Info_Type_t) 0}
-,
-{"low_01_C" , 16, 0, 0, 0, 0, (RtecScheduler::Criticality_t) 1, (RtecScheduler::Importance_t) 3, 0, 0, 2, 0, 1, (RtecScheduler::Info_Type_t) 0}
-
-};
-
-static int infos_size = sizeof(infos)/sizeof(infos[0]);
-
-
-static ACE_Scheduler_Factory::POD_Config_Info configs[] = {
- { 0, 15, (RtecScheduler::Dispatching_Type_t) 2 },
- { 1, 2, (RtecScheduler::Dispatching_Type_t) 2 }
-};
-
-static int configs_size = sizeof(configs)/sizeof(configs[0]);
-
-
-// This sets up Scheduler_Factory to use the runtime version.
-int scheduler_factory_setup =
- ACE_Scheduler_Factory::use_runtime (configs_size, configs, infos_size, infos);
-
-// EOF