return (CORBA::ULong)_Compteur ;
}
-
+#ifndef WNT
void RegistryService::remove( const CORBA::ULong id)
+#else
+void RegistryService::remove( CORBA::ULong id)
+#endif
{
BEGIN_OF("RegistryService::remove") ;
SCRUTE(id) ;
}
-
+#ifndef WNT
void RegistryService::hello( const CORBA::ULong id )
+#else
+void RegistryService::hello( CORBA::ULong id )
+#endif
{
BEGIN_OF("RegistryService::hello") ;
SCRUTE(id) ;
# include <map>
-
-class RegistryService : public POA_Registry::Components //, public PortableServer::RefCountServantBase
+#if defined REGISTRY_EXPORTS
+#if defined WIN32
+#define REGISTRY_EXPORT __declspec( dllexport )
+#else
+#define REGISTRY_EXPORT
+#endif
+#else
+#if defined WNT
+#define REGISTRY_EXPORT __declspec( dllimport )
+#else
+#define REGISTRY_EXPORT
+#endif
+#endif
+
+class REGISTRY_EXPORT RegistryService : public POA_Registry::Components //, public PortableServer::RefCountServantBase
{
public :
void ping();
virtual CORBA::ULong add (const Registry::Infos & infos);
virtual CORBA::ULong size ( void );
+#ifndef WNT
virtual void remove( const CORBA::ULong id );
virtual void hello( const CORBA::ULong id );
+#else
+ virtual void remove( CORBA::ULong id );
+ virtual void hello( CORBA::ULong id );
+#endif
virtual void end(void);
virtual Registry::AllInfos *getall(void);
for (int i = 1; i<=NumberOfTries; i++)
{
if (i!=1)
+#ifndef WNT
a=nanosleep(&ts_req,&ts_rem);
+#else
+ Sleep(TIMESleep/1000000);
+#endif
try
{
obj = orb->resolve_initial_references("RootPOA");
for(int j=1; j<=NumberOfTries; j++)
{
if (j!=1)
+#ifndef WNT
a=nanosleep(&ts_req, &ts_rem);
+#else
+ Sleep(TIMESleep/1000000);
+#endif
try
{
object = inc->resolve(name);
#define MAXMESS_LENGTH MAX_TRACE_LENGTH-5
LocalTraceBufferPool* LocalTraceBufferPool::_singleton = 0;
+#ifndef WNT
pthread_mutex_t LocalTraceBufferPool::_singletonMutex;
+#else
+pthread_mutex_t LocalTraceBufferPool::_singletonMutex = PTHREAD_MUTEX_INITIALIZER;
+#endif
// ============================================================================
/*!