activemq-cpp-3.4.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.

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: