FeeServer::Thread::Attributes Class Reference
[Threading classes]

#include <feeserver/fee_thread.hh>

List of all members.


Detailed Description

Thread attributes.

Public Types

enum  Scheduling { Other, RoundRobin, Fifo }

Public Member Functions

 Attributes (bool detached=false, bool inherit=true, Scheduling policy=Other, int priority=0)
virtual ~Attributes ()
bool Detach (bool detach)
bool Inherit (bool inherit)
bool Schedule (Scheduling policy, int priority=0)
bool Detached () const
bool Inherits () const
Scheduling Policy () const
int Priority () const

Protected Attributes

pthread_attr_t _attr

Friends

class Thread

Member Enumeration Documentation

Enumerator:
Other 
RoundRobin 
Fifo 


Constructor & Destructor Documentation

FeeServer::Thread::Attributes::Attributes ( bool  detached = false,
bool  inherit = true,
Scheduling  policy = Other,
int  priority = 0 
)

FeeServer::Thread::Attributes::~Attributes (  )  [virtual]

Destructor


Member Function Documentation

bool FeeServer::Thread::Attributes::Detach ( bool  detach  ) 

Parameters:
detach Wether to start in detached state

bool FeeServer::Thread::Attributes::Inherit ( bool  inherit  ) 

Parameters:
inherit Inherit scheduling parameters and policies

bool FeeServer::Thread::Attributes::Schedule ( Scheduling  policy,
int  priority = 0 
)

Parameters:
policy Scheduling policy
priority Scheduling priority

bool FeeServer::Thread::Attributes::Detached (  )  const

Returns:
true if threads are started detached

bool FeeServer::Thread::Attributes::Inherits (  )  const

Returns:
true if threads inherits scheduling parameters

FeeServer::Thread::Attributes::Scheduling FeeServer::Thread::Attributes::Policy (  )  const

Returns:
the policy type

int FeeServer::Thread::Attributes::Priority (  )  const

Returns:
the priority


Friends And Related Function Documentation

friend class Thread [friend]

Thread is a friend


Member Data Documentation

pthread_attr_t FeeServer::Thread::Attributes::_attr [protected]


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

Generated on Thu Jun 26 17:02:42 2008 for FeeServer++ 0.9 by  doxygen 1.5.6