OmniSciDB
a5dc49c757
|
A wrapper returned by ExecutorResourceMgr
to the requestee, containing the ResourceGrant that was granted. When this class goes out of scope (i.e. the executing thread finishes its query step, the destructor will automatically instruct ExecutorResourceMgr
to release the granted resources back to the ExecutorResourcePool
.
More...
#include <ExecutorResourceMgr.h>
Public Member Functions | |
ExecutorResourceHandle (std::shared_ptr< ExecutorResourceMgr > resource_mgr, const RequestId request_id, const ResourceGrant &resource_grant) | |
~ExecutorResourceHandle () | |
RequestId | get_request_id () const |
ResourceGrant | get_resource_grant () const |
Private Attributes | |
std::shared_ptr < ExecutorResourceMgr > | resource_mgr_ |
const RequestId | request_id_ |
const ResourceGrant | resource_grant_ |
A wrapper returned by ExecutorResourceMgr
to the requestee, containing the ResourceGrant that was granted. When this class goes out of scope (i.e. the executing thread finishes its query step, the destructor will automatically instruct ExecutorResourceMgr
to release the granted resources back to the ExecutorResourcePool
.
Definition at line 594 of file ExecutorResourceMgr.h.
|
inline |
Definition at line 596 of file ExecutorResourceMgr.h.
|
inline |
Definition at line 603 of file ExecutorResourceMgr.h.
References request_id_, resource_grant_, and resource_mgr_.
|
inline |
Definition at line 607 of file ExecutorResourceMgr.h.
References request_id_.
|
inline |
Definition at line 608 of file ExecutorResourceMgr.h.
References resource_grant_.
|
private |
Definition at line 612 of file ExecutorResourceMgr.h.
Referenced by get_request_id(), and ~ExecutorResourceHandle().
|
private |
Definition at line 613 of file ExecutorResourceMgr.h.
Referenced by get_resource_grant(), and ~ExecutorResourceHandle().
|
private |
Definition at line 611 of file ExecutorResourceMgr.h.
Referenced by ~ExecutorResourceHandle().