activemq-cpp-3.4.0
|
Handles APR initialization and termination. More...
#include <src/main/decaf/internal/DecafRuntime.h>
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::Mutex * | 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. |
Handles APR initialization and termination.
decaf::internal::DecafRuntime::DecafRuntime | ( | ) |
Initializes the APR Runtime for a library.
virtual decaf::internal::DecafRuntime::~DecafRuntime | ( | ) | [virtual] |
Terminates the APR Runtime for a library.
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.
apr_pool_t* decaf::internal::DecafRuntime::getGlobalPool | ( | ) | const |
Grants access to the Global APR Pool instance that should be used when creating new threads.