activemq-cpp-3.6.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. | |
![]() | |
virtual | ~Runtime () |
Additional Inherited Members | |
![]() | |
static Runtime * | getRuntime () |
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. | |
![]() | |
Runtime () |
Handles APR initialization and termination.
decaf::internal::DecafRuntime::DecafRuntime | ( | ) |
Initializes the APR Runtime for a library.
|
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.