The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
threading::thread Class Reference

#include <thread.hpp>

Inheritance diagram for threading::thread:
Inheritance graph

Public Member Functions

 thread (int(*f)(void *), void *data=nullptr)
 
 ~thread ()
 
void join ()
 
void detach ()
 
boost::uint32_t get_id ()
 

Private Attributes

SDL_Thread * thread_
 

Detailed Description

Definition at line 56 of file thread.hpp.

Constructor & Destructor Documentation

threading::thread::thread ( int(*)(void *)  f,
void data = nullptr 
)
explicit

Definition at line 58 of file thread.cpp.

threading::thread::~thread ( )

Definition at line 63 of file thread.cpp.

References join().

Member Function Documentation

void threading::thread::detach ( )

Definition at line 76 of file thread.cpp.

References thread_.

boost::uint32_t threading::thread::get_id ( )

Definition at line 28 of file thread.cpp.

References thread_.

Referenced by network_worker_pool::manager::manager().

void threading::thread::join ( )

Definition at line 68 of file thread.cpp.

References thread_.

Referenced by ~thread().

Member Data Documentation

SDL_Thread* threading::thread::thread_
private

Definition at line 85 of file thread.hpp.

Referenced by detach(), get_id(), and join().


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