#include <feeserver/fee_thread.hh>
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 |
FeeServer::Thread::Attributes::Attributes | ( | bool | detached = false , |
|
bool | inherit = true , |
|||
Scheduling | policy = Other , |
|||
int | priority = 0 | |||
) |
FeeServer::Thread::Attributes::~Attributes | ( | ) | [virtual] |
Destructor
bool FeeServer::Thread::Attributes::Detach | ( | bool | detach | ) |
detach | Wether to start in detached state |
bool FeeServer::Thread::Attributes::Inherit | ( | bool | inherit | ) |
inherit | Inherit scheduling parameters and policies |
bool FeeServer::Thread::Attributes::Schedule | ( | Scheduling | policy, | |
int | priority = 0 | |||
) |
policy | Scheduling policy | |
priority | Scheduling priority |
bool FeeServer::Thread::Attributes::Detached | ( | ) | const |
bool FeeServer::Thread::Attributes::Inherits | ( | ) | const |
FeeServer::Thread::Attributes::Scheduling FeeServer::Thread::Attributes::Policy | ( | ) | const |
int FeeServer::Thread::Attributes::Priority | ( | ) | const |
pthread_attr_t FeeServer::Thread::Attributes::_attr [protected] |