activemq-cpp-3.6.0
decaf::internal::DecafRuntime Class Reference

Handles APR initialization and termination. More...

#include <src/main/decaf/internal/DecafRuntime.h>

Inheritance diagram for decaf::internal::DecafRuntime:

Public Member Functions

 DecafRuntime ()
 Initializes the APR Runtime for a library.
virtual ~DecafRuntime ()
 Terminates the APR Runtime for a library.
apr_pool_t * getGlobalPool () const
 Grants access to the Global APR Pool instance that should be used when creating new threads.
decaf::util::concurrent::MutexgetGlobalLock ()
 Gets a pointer to the Decaf Runtime's Global Lock object, this can be used by Decaf APIs to synchronize around certain actions such as adding or acquiring a resource that must be Thread safe.
- Public Member Functions inherited from decaf::lang::Runtime
virtual ~Runtime ()

Additional Inherited Members

- Static Public Member Functions inherited from decaf::lang::Runtime
static RuntimegetRuntime ()
 Gets the single instance of the Decaf Runtime for this Process.
static void initializeRuntime (int argc, char **argv)
 Initialize the Decaf Library passing it the args that were passed to the application at startup.
static void initializeRuntime ()
 Initialize the Decaf Library.
static void shutdownRuntime ()
 Shutdown the Decaf Library, this call should take places after all objects that were created from the Decaf library have been deallocated.
- Protected Member Functions inherited from decaf::lang::Runtime
 Runtime ()

Detailed Description

Handles APR initialization and termination.

Constructor & Destructor Documentation

decaf::internal::DecafRuntime::DecafRuntime ( )

Initializes the APR Runtime for a library.

virtual decaf::internal::DecafRuntime::~DecafRuntime ( )
virtual

Terminates the APR Runtime for a library.

Member Function Documentation

decaf::util::concurrent::Mutex* decaf::internal::DecafRuntime::getGlobalLock ( )

Gets a pointer to the Decaf Runtime's Global Lock object, this can be used by Decaf APIs to synchronize around certain actions such as adding or acquiring a resource that must be Thread safe.

The pointer returned is owned by the Decaf runtime and should not be deleted or copied by the caller.

Returns
a pointer to the Decaf Runtime's global Lock instance.
apr_pool_t* decaf::internal::DecafRuntime::getGlobalPool ( ) const

Grants access to the Global APR Pool instance that should be used when creating new threads.


The documentation for this class was generated from the following file: