ASSERT(SINGLETON_<ORB_INIT>::IsAlreadyExisting());
CORBA::ORB_var orb = init(0 , 0 ) ;
- SALOMETraceCollector *myThreadTrace = SALOMETraceCollector::instance(orb);
+ LocalTraceCollector *myThreadTrace = SALOMETraceCollector::instance(orb);
INFOS_COMPILATION;
BEGIN_OF(argv[0]);
CORBA::Object_var obj;
CORBA::ORB_var orb = CORBA::ORB_init( argc , argv ) ;
- SALOMETraceCollector *myThreadTrace = SALOMETraceCollector::instance(orb);
+ LocalTraceCollector *myThreadTrace = SALOMETraceCollector::instance(orb);
INFOS_COMPILATION;
BEGIN_OF(argv[0]);
try{
{
// initialize the ORB
CORBA::ORB_ptr orb = CORBA::ORB_init (argc, argv);
- SALOMETraceCollector *myThreadTrace = SALOMETraceCollector::instance(orb);
+ LocalTraceCollector *myThreadTrace = SALOMETraceCollector::instance(orb);
try
{
CosNaming::NamingContext_var _rootContext, catalogContext;
char *xargv = "";
char **argv = &xargv;
CORBA::ORB_var orb = CORBA::ORB_init(argc, argv);
- SALOMETraceCollector *myThreadTrace = SALOMETraceCollector::instance(orb);
+ LocalTraceCollector *myThreadTrace = SALOMETraceCollector::instance(orb);
if (!ns)
{
_NS = new SALOME_NamingService(orb);
{
// Initializing omniORB
CORBA::ORB_var orb = CORBA::ORB_init(argc, argv);
- SALOMETraceCollector *myThreadTrace = SALOMETraceCollector::instance(orb);
+ LocalTraceCollector *myThreadTrace = SALOMETraceCollector::instance(orb);
// Obtain a reference to the root POA
CORBA::Object_var obj = orb->resolve_initial_references("RootPOA") ;
{
// initialize the ORB
CORBA::ORB_ptr orb = CORBA::ORB_init (argc, argv);
- SALOMETraceCollector *myThreadTrace = SALOMETraceCollector::instance(orb);
+ LocalTraceCollector *myThreadTrace = SALOMETraceCollector::instance(orb);
try
{
CosNaming::NamingContext_var _rootContext, catalogContext;
{
ORB_INIT &init = *SINGLETON_<ORB_INIT>::Instance() ;
CORBA::ORB_var &orb = init( argc , argv ) ;
- SALOMETraceCollector *myThreadTrace = SALOMETraceCollector::instance(orb);
+ LocalTraceCollector *myThreadTrace = SALOMETraceCollector::instance(orb);
BEGIN_OF( argv[0] )
INFOS_COMPILATION
SCRUTE(argc)
command = "ssh ";
else
throw SALOME_Exception("Unknown protocol");
+
// command+=machine;
// _CommandForRemAccess=command;
// command+=" ";
// command += machine;
// command += ".log 2>&1 &";
// cout << "Command is ... " << command << endl;
+
command += machine; // on suppose le même user par defaut
command += " ";
command += getenv("APPLI"); // chemin relatif a $HOME
{
// initialize the ORB
CORBA::ORB_ptr orb = CORBA::ORB_init (argc, argv);
- SALOMETraceCollector *myThreadTrace = SALOMETraceCollector::instance(orb);
+ LocalTraceCollector *myThreadTrace = SALOMETraceCollector::instance(orb);
try
{
CosNaming::NamingContext_var _rootContext, catalogContext;
protected:
LocalTraceCollector();
- private:
static int _threadToClose;
static int _toFile;
static LocalTraceCollector* _singleton;
// Class attributes initialisation, for class method SALOMETraceCollector::run
-SALOMETraceCollector* SALOMETraceCollector::_singleton = 0;
-#ifndef WNT
-pthread_mutex_t SALOMETraceCollector::_singletonMutex;
-#else
-pthread_mutex_t SALOMETraceCollector::_singletonMutex = PTHREAD_MUTEX_INITIALIZER;
-#endif
-int SALOMETraceCollector::_threadToClose = 0;
-pthread_t* SALOMETraceCollector::_threadId = 0; // used to control single run
-int SALOMETraceCollector::_toFile = 0;
-std::string SALOMETraceCollector::_fileName = "";
CORBA::ORB_ptr SALOMETraceCollector::_orb = 0;
// ============================================================================
*/
// ============================================================================
-SALOMETraceCollector* SALOMETraceCollector::instance(CORBA::ORB_ptr theOrb,
+LocalTraceCollector* SALOMETraceCollector::instance(CORBA::ORB_ptr theOrb,
int typeTrace)
{
if (_singleton == 0) // no need of lock when singleton already exists
#include <string>
#include <CORBA.h>
+#include "LocalTraceCollector.hxx"
#include "LocalTraceBufferPool.hxx"
-//! See LocalTraceCollector instead of SALOMETraceCollector for usage without CORBA
+//! See LocalTraceCollector instead of SALOMETraceCollector,
+//! for usage without CORBA
#if defined SALOMETRACECOLLECTOR_EXPORTS
#if defined WIN32
#endif
#endif
-class SALOMETRACECOLLECTOR_EXPORT SALOMETraceCollector
+class SALOMETRACECOLLECTOR_EXPORT SALOMETraceCollector: LocalTraceCollector
{
public:
- static SALOMETraceCollector* instance(CORBA::ORB_ptr theOrb, int typeTrace=0);
+ static LocalTraceCollector* instance(CORBA::ORB_ptr theOrb, int typeTrace=0);
static void *run(void *bid);
~SALOMETraceCollector();
SALOMETraceCollector();
private:
- static int _threadToClose;
- static int _toFile;
- static SALOMETraceCollector* _singleton;
- static pthread_mutex_t _singletonMutex;
- static pthread_t* _threadId;
- static std::string _fileName;
static CORBA::ORB_ptr _orb;
};
// Initializing omniORB
ORB_INIT &init = *SINGLETON_<ORB_INIT>::Instance() ;
CORBA::ORB_var &orb = init( argc , argv ) ;
- SALOMETraceCollector *myThreadTrace = SALOMETraceCollector::instance(orb);
+ LocalTraceCollector *myThreadTrace = SALOMETraceCollector::instance(orb);
try
{