OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ExecutorResourceMgr_Namespace::ExecutorResourceHandle Class Reference

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>

+ Collaboration diagram for ExecutorResourceMgr_Namespace::ExecutorResourceHandle:

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_
 

Detailed Description

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.

Constructor & Destructor Documentation

ExecutorResourceMgr_Namespace::ExecutorResourceHandle::ExecutorResourceHandle ( std::shared_ptr< ExecutorResourceMgr resource_mgr,
const RequestId  request_id,
const ResourceGrant resource_grant 
)
inline

Definition at line 596 of file ExecutorResourceMgr.h.

599  : resource_mgr_(resource_mgr)
601  , resource_grant_(resource_grant) {}
RequestId request_id()
Definition: Logger.cpp:874
std::shared_ptr< ExecutorResourceMgr > resource_mgr_
ExecutorResourceMgr_Namespace::ExecutorResourceHandle::~ExecutorResourceHandle ( )
inline

Member Function Documentation

RequestId ExecutorResourceMgr_Namespace::ExecutorResourceHandle::get_request_id ( ) const
inline

Definition at line 607 of file ExecutorResourceMgr.h.

References request_id_.

ResourceGrant ExecutorResourceMgr_Namespace::ExecutorResourceHandle::get_resource_grant ( ) const
inline

Definition at line 608 of file ExecutorResourceMgr.h.

References resource_grant_.

Member Data Documentation

const RequestId ExecutorResourceMgr_Namespace::ExecutorResourceHandle::request_id_
private

Definition at line 612 of file ExecutorResourceMgr.h.

Referenced by get_request_id(), and ~ExecutorResourceHandle().

const ResourceGrant ExecutorResourceMgr_Namespace::ExecutorResourceHandle::resource_grant_
private

Definition at line 613 of file ExecutorResourceMgr.h.

Referenced by get_resource_grant(), and ~ExecutorResourceHandle().

std::shared_ptr<ExecutorResourceMgr> ExecutorResourceMgr_Namespace::ExecutorResourceHandle::resource_mgr_
private

Definition at line 611 of file ExecutorResourceMgr.h.

Referenced by ~ExecutorResourceHandle().


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