Please use PEGASUS_USE_EXTERNAL_SLP)
endif
## if PEGASUS_USE_OPENSLP used, convert to EXTERNAL_SLP variables
+ ## as defined for openslp
ifeq ($(PEGASUS_USE_OPENSLP),true)
ifeq ($(PEGASUS_ENABLE_SLP),true)
- ###DEFINES += -DPEGASUS_USE_EXTERNAL_SLP_TYPE=1
- PEGASUS_USE_EXTERNAL_SLP_TYPE=openslp
+ DEFINES += -DPEGASUS_USE_EXTERNAL_SLP_TYPE=1
+ PEGASUS_USE_EXTERNAL_SLP=openslp
else
$(error PEGASUS_USE_OPENSLP defined but PEGASUS_ENABLE_SLP is not true. \
Please correct this inconsistency)
Uint32 usec;
Time::gettimeofday(&now);
-#if defined(PEGASUS_OS_SOLARIS)
memset(&remaining, 0, sizeof(remaining));
-#else
- Time::gettimeofday(&remaining); // Avoid valgrind error
-#endif
finish.tv_sec = start->tv_sec + interval->tv_sec;
usec = start->tv_usec + interval->tv_usec;
printf("iterations: %05u\n", message->x);
}
-#ifdef PEGASUS_OS_SOLARIS
+// The following was a noted issue for earlier versions of
+// Solaris (ex. 5.8) It has been commented out for later
+// version (ex. 10 and 11). NOTE: if we are to guarantee
+// compatibility with earlier versions this may have to be
+// reinstated for those versions.
+//#ifdef PEGASUS_OS_SOLARIS
// special dish of the day for Sun Solaris
// reports say that running as root causes
// the thread not being scheduled-out
// until this is resolved the yield()
// will stay here just for Solaris
- Threads::yield();
-#endif
+// Threads::yield();
+//#endif
delete message;
}
for (Uint32 i = 0; i < ITERATIONS; i++)
{
queue->enqueue(new TestMessage(i));
+// The following was a noted issue for earlier versions of
+// Solaris (ex. 5.8) It has been commented out for later
+// version (ex. 10 and 11). NOTE: if we are to guarantee
+// compatibility with earlier versions this may have to be
+// reinstated for those versions.
// special dish of the day for Sun Solaris
// reports say that running as root causes
// the thread not being scheduled-out
// until this is resolved the yield()
// will stay here just for Solaris
-#ifdef PEGASUS_OS_SOLARIS
- Threads::yield();
-#endif
+//#ifdef PEGASUS_OS_SOLARIS
+// Threads::yield();
+//#endif
}
return ThreadReturnType(0);
}
repositoryPath.append("/repository");
- PEGASUS_TEST_ASSERT(FileSystem::isDirectory(repositoryPath));
-
CIMRepository* repository = new CIMRepository(repositoryPath);
// -- Create a UserManager object:
}
repositoryPath.append("/repository");
- FileSystem::isDirectory(repositoryPath);
-
CIMRepository* repository = new CIMRepository(repositoryPath);
// -- Create a UserManager object:
// OpenSLP allows NULL so that it can select the locale.
#ifdef PEGASUS_USE_EXTERNAL_SLP_TYPE
+// language typing for slp call only applies to SOLARIS
#ifdef PEGASUS_OS_SOLARIS
-// If 2 (i.e. solarisslp). Set language.
+ // If 2 (i.e. solarisslp). Set language.
#if PEGASUS_USE_EXTERNAL_SLP_TYPE == 2
- const char* slp_service_agent::slp_lang = "en";
-#else // any other external slp implementation
+ const char* slp_serviceagent::slp_lang = "en";
+ // if 1, openslp and let slp set language
+#elif PEGASUS_USE_EXTERNAL_SLP_TYPE == 1
+ _ const char* slp_serviceagent::slp_lang = NULL;
+#else // Some other implementation
const char* slp_service_agent::slp_lang = NULL;
-#endif
+#endif // End PEGASUS_USE_EXTERNAL_SLP_TYPE
#else // NOT PEGASUS_OS_SOLARIS
const char* slp_service_agent::slp_lang = NULL;
#endif