reSIProcate/stack  9694
Classes | Defines | Functions | Variables
testSecurity.cxx File Reference
#include <iostream>
#include "resip/stack/ssl/Security.hxx"
#include "rutil/ThreadIf.hxx"
#include "rutil/Log.hxx"
#include "rutil/Logger.hxx"
Include dependency graph for testSecurity.cxx:

Go to the source code of this file.

Classes

class  HashThread
class  DumbInitThread

Defines

#define RESIPROCATE_SUBSYSTEM   Subsystem::TEST

Functions

void testMultiple ()
void testSecurityMultiThread ()
int main (int argc, const char **argv)

Variables

HashThread RSP2

Define Documentation

#define RESIPROCATE_SUBSYSTEM   Subsystem::TEST

Definition at line 20 of file testSecurity.cxx.


Function Documentation

int main ( int  argc,
const char **  argv 
)

Definition at line 111 of file testSecurity.cxx.

References testMultiple(), and testSecurityMultiThread().

{
   Log::initialize(Log::Cout, Log::Debug, argv[0]);
#if 0
   testMultiple();
#else
   testSecurityMultiThread();
#endif
   return 0;
}

Here is the call graph for this function:

void testMultiple ( )

Definition at line 25 of file testSecurity.cxx.

Referenced by main().

{
   {
      Security security;
   }
#ifdef WIN32
      Sleep(10000);
#else
      sleep(10);      
#endif
   {
      Security security;
   }
}
void testSecurityMultiThread ( )

Definition at line 97 of file testSecurity.cxx.

References resip::ThreadIf::join(), and resip::ThreadIf::run().

Referenced by main().

{
   HashThread t1;
   DumbInitThread t2;

   t1.run();
   t2.run();

   t1.join();
   t2.join();
}

Here is the call graph for this function:


Variable Documentation

HashThread RSP2