cheshirekow  v0.1.0
thread_attr.h File Reference
#include <pthread.h>
#include <cstdarg>
#include <cpp_pthreads/attr.h>
#include <cpp_pthreads/enums.h>
#include <cpp_pthreads/thread.h>

Go to the source code of this file.

Classes

struct  pthreads::AttrType< Thread >
 A simple way of telling Attr<Thread> that it's storage type is pthread_attr_t. More...
 
struct  pthreads::Stack
 Simply encapsulates the stack address and size in a single object. More...
 

Namespaces

 pthreads
 Wraps posix-threads (pthreads.h) with object oriented API.
 

Typedefs

typedef TypeWrap< std::size_t, 0 > pthreads::GuardSize
 A unique type which acts just like size_t but is distinct in the eyes of the compiler. More...
 
typedef TypeWrap< std::size_t, 1 > pthreads::StackSize
 A unique type which acts just like size_t but is distinct in the eyes of the compiler. More...
 

Variables

const Access< Thread, DetachState > pthreads::DETACH_STATE
 provides access to the detachstate field of a pthread_attr_t More...
 
const Access< Thread, GuardSize > pthreads::GUARD_SIZE
 provides access to the guardsize field of a pthread_attr_t More...
 
const Access< Thread,
InheritSched > 
pthreads::INHERIT_SCHED
 provides access to the inheritsched field of a pthread_attr_t More...
 
const Access< Thread, SchedPolicy > pthreads::SCHED_POLICY
 provides access to the schedpolicy field of a pthread_attr_t More...
 
const Access< Thread, Scope > pthreads::SCOPE
 provides access to the scope field of a pthread_attr_t More...
 
const Access< Thread, Stack > pthreads::STACK
 provides access to the stack field of a pthread_attr_t, including stack address and size More...
 
const Access< Thread, StackSize > pthreads::STACK_SIZE
 provides access to the stacksize field of a pthread_attr_t More...