TAO_RTCORBA 4.0.1
Loading...
Searching...
No Matches
Public Member Functions | List of all members
TAO_Thread_Pool Class Reference

Class representing the thread pool inside a thread pool manager. More...

#include <Thread_Pool.h>

Collaboration diagram for TAO_Thread_Pool:
Collaboration graph
[legend]

Public Member Functions

 TAO_Thread_Pool (TAO_Thread_Pool_Manager &manager, CORBA::ULong id, CORBA::ULong stack_size, CORBA::ULong static_threads, CORBA::ULong dynamic_threads, CORBA::Short default_priority, CORBA::Boolean allow_request_buffering, CORBA::ULong max_buffered_requests, CORBA::ULong max_request_buffer_size, TAO_RT_ORBInitializer::TAO_RTCORBA_DT_LifeSpan lifespan, ACE_Time_Value const &dynamic_thread_time)
 Constructor (for pools without lanes).
 
 TAO_Thread_Pool (TAO_Thread_Pool_Manager &manager, CORBA::ULong id, CORBA::ULong stack_size, const RTCORBA::ThreadpoolLanes &lanes, CORBA::Boolean allow_borrowing, CORBA::Boolean allow_request_buffering, CORBA::ULong max_buffered_requests, CORBA::ULong max_request_buffer_size, TAO_RT_ORBInitializer::TAO_RTCORBA_DT_LifeSpan lifespan, ACE_Time_Value const &dynamic_thread_time)
 Constructor (for pools with lanes).
 
 ~TAO_Thread_Pool ()
 Destructor.
 
void open ()
 Open the pool.
 
void finalize ()
 Finalize the resources.
 
void shutdown_reactor ()
 Shutdown the reactor.
 
void wait ()
 Wait for threads to exit.
 
void shutting_down ()
 Mark this thread pool that we are shutting down.
 
int is_collocated (const TAO_MProfile &mprofile)
 Does mprofile belong to us?
 
int create_static_threads ()
 Create the static threads - only called once.
 
bool with_lanes () const
 Check if this thread pool has (explicit) lanes.
 

Accessors

TAO_Thread_Pool_Managermanager_
 
CORBA::ULong id_
 
CORBA::ULong stack_size_
 
CORBA::Boolean allow_borrowing_
 
CORBA::Boolean allow_request_buffering_
 
CORBA::ULong max_buffered_requests_
 
CORBA::ULong max_request_buffer_size_
 
ACE_Time_Value const dynamic_thread_time_
 
TAO_Thread_Lane ** lanes_
 
CORBA::ULong number_of_lanes_
 
bool with_lanes_
 
TAO_Thread_Pool_Managermanager () const
 
CORBA::ULong id () const
 
CORBA::ULong stack_size () const
 
CORBA::Boolean allow_borrowing () const
 
CORBA::Boolean allow_request_buffering () const
 
CORBA::ULong max_buffered_requests () const
 
CORBA::ULong max_request_buffer_size () const
 
TAO_Thread_Lane ** lanes ()
 
CORBA::ULong number_of_lanes () const
 

Detailed Description

Class representing the thread pool inside a thread pool manager.

Constructor & Destructor Documentation

◆ TAO_Thread_Pool() [1/2]

TAO_Thread_Pool::TAO_Thread_Pool ( TAO_Thread_Pool_Manager & manager,
CORBA::ULong id,
CORBA::ULong stack_size,
CORBA::ULong static_threads,
CORBA::ULong dynamic_threads,
CORBA::Short default_priority,
CORBA::Boolean allow_request_buffering,
CORBA::ULong max_buffered_requests,
CORBA::ULong max_request_buffer_size,
TAO_RT_ORBInitializer::TAO_RTCORBA_DT_LifeSpan lifespan,
ACE_Time_Value const & dynamic_thread_time )

Constructor (for pools without lanes).

◆ TAO_Thread_Pool() [2/2]

TAO_Thread_Pool::TAO_Thread_Pool ( TAO_Thread_Pool_Manager & manager,
CORBA::ULong id,
CORBA::ULong stack_size,
const RTCORBA::ThreadpoolLanes & lanes,
CORBA::Boolean allow_borrowing,
CORBA::Boolean allow_request_buffering,
CORBA::ULong max_buffered_requests,
CORBA::ULong max_request_buffer_size,
TAO_RT_ORBInitializer::TAO_RTCORBA_DT_LifeSpan lifespan,
ACE_Time_Value const & dynamic_thread_time )

Constructor (for pools with lanes).

◆ ~TAO_Thread_Pool()

TAO_Thread_Pool::~TAO_Thread_Pool ( )

Destructor.

Member Function Documentation

◆ allow_borrowing()

CORBA::Boolean TAO_Thread_Pool::allow_borrowing ( ) const
inline

◆ allow_request_buffering()

CORBA::Boolean TAO_Thread_Pool::allow_request_buffering ( ) const
inline

◆ create_static_threads()

int TAO_Thread_Pool::create_static_threads ( )

Create the static threads - only called once.

◆ finalize()

void TAO_Thread_Pool::finalize ( )

Finalize the resources.

◆ id()

CORBA::ULong TAO_Thread_Pool::id ( ) const
inline

◆ is_collocated()

int TAO_Thread_Pool::is_collocated ( const TAO_MProfile & mprofile)

Does mprofile belong to us?

◆ lanes()

TAO_Thread_Lane ** TAO_Thread_Pool::lanes ( )
inline

◆ manager()

TAO_Thread_Pool_Manager & TAO_Thread_Pool::manager ( ) const
inline

◆ max_buffered_requests()

CORBA::ULong TAO_Thread_Pool::max_buffered_requests ( ) const
inline

◆ max_request_buffer_size()

CORBA::ULong TAO_Thread_Pool::max_request_buffer_size ( ) const
inline

◆ number_of_lanes()

CORBA::ULong TAO_Thread_Pool::number_of_lanes ( ) const
inline

◆ open()

void TAO_Thread_Pool::open ( )

Open the pool.

◆ shutdown_reactor()

void TAO_Thread_Pool::shutdown_reactor ( )

Shutdown the reactor.

◆ shutting_down()

void TAO_Thread_Pool::shutting_down ( )

Mark this thread pool that we are shutting down.

◆ stack_size()

CORBA::ULong TAO_Thread_Pool::stack_size ( ) const
inline

◆ wait()

void TAO_Thread_Pool::wait ( )

Wait for threads to exit.

◆ with_lanes()

bool TAO_Thread_Pool::with_lanes ( ) const
inline

Check if this thread pool has (explicit) lanes.

Member Data Documentation

◆ allow_borrowing_

CORBA::Boolean TAO_Thread_Pool::allow_borrowing_
private

◆ allow_request_buffering_

CORBA::Boolean TAO_Thread_Pool::allow_request_buffering_
private

◆ dynamic_thread_time_

ACE_Time_Value const TAO_Thread_Pool::dynamic_thread_time_
private

◆ id_

CORBA::ULong TAO_Thread_Pool::id_
private

◆ lanes_

TAO_Thread_Lane** TAO_Thread_Pool::lanes_
private

◆ manager_

TAO_Thread_Pool_Manager& TAO_Thread_Pool::manager_
private

◆ max_buffered_requests_

CORBA::ULong TAO_Thread_Pool::max_buffered_requests_
private

◆ max_request_buffer_size_

CORBA::ULong TAO_Thread_Pool::max_request_buffer_size_
private

◆ number_of_lanes_

CORBA::ULong TAO_Thread_Pool::number_of_lanes_
private

◆ stack_size_

CORBA::ULong TAO_Thread_Pool::stack_size_
private

◆ with_lanes_

bool TAO_Thread_Pool::with_lanes_
private

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