diff options
-rw-r--r-- | TAO/tests/Cubit/COOL/MT_Cubit/Makefile | 2 | ||||
-rw-r--r-- | TAO/tests/Cubit/COOL/MT_Cubit/client.cpp | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/TAO/tests/Cubit/COOL/MT_Cubit/Makefile b/TAO/tests/Cubit/COOL/MT_Cubit/Makefile index dc43d2bf75d..3a15988976a 100644 --- a/TAO/tests/Cubit/COOL/MT_Cubit/Makefile +++ b/TAO/tests/Cubit/COOL/MT_Cubit/Makefile @@ -55,7 +55,7 @@ ifdef CHORUS CLT_OBJS += pccTimer.o LDLIBS += -lOrb else - LDLIBS += -lOrb-mt + LDLIBS += -lsocket -lACE -lOrb-mt endif VLDLIBS = $(LDLIBS:%=%$(VAR)) diff --git a/TAO/tests/Cubit/COOL/MT_Cubit/client.cpp b/TAO/tests/Cubit/COOL/MT_Cubit/client.cpp index f0b6adb3c27..5366857dd7f 100644 --- a/TAO/tests/Cubit/COOL/MT_Cubit/client.cpp +++ b/TAO/tests/Cubit/COOL/MT_Cubit/client.cpp @@ -39,6 +39,8 @@ initialize (void) int do_priority_inversion_test (Task_State &ts) { + u_int i = 0; + // Create the clients Client high_priority_client (&ts); Client low_priority_client (&ts); @@ -72,7 +74,7 @@ do_priority_inversion_test (Task_State &ts) // Drop the priority, so that the priority of clients will increase // with increasing client number. - for (int i = 0; i < ts.thread_count_; i++) + for (i = 0; i < ts.thread_count_; i++) priority = ACE_Sched_Params::previous_priority (ACE_SCHED_FIFO, priority, ACE_SCOPE_THREAD); @@ -82,7 +84,7 @@ do_priority_inversion_test (Task_State &ts) ts.thread_count_ - 1, priority)); - for (u_int i = 0; i < ts.thread_count_ - 1; i++) + for (i = 0; i < ts.thread_count_ - 1; i++) { // The first thread starts at min + 1, since the minimum // priority thread is the utilization thread. |