cwidget  0.5.17
Public Member Functions | Friends | List of all members
cwidget::threads::thread::attr Class Reference

Stores the attributes with which a thread is to be created. More...

#include <threads.h>

Public Member Functions

void set_inherit_sched (int i)
 
int get_inherit_sched () const
 
void set_sched_param (const sched_param &sp)
 
sched_param get_sched_param () const
 
void set_sched_policy (int p)
 
int get_sched_policy () const
 
void set_scope (int p)
 
int get_scope () const
 

Friends

class thread
 

Detailed Description

Stores the attributes with which a thread is to be created.

This wraps pthread_attr_t. To use this class, create an instance and then invoke the set_* methods to set the desired attributes. Pass the final attributes structure to thread::thread.


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