threading::thread Class Reference

#include <thread.hpp>

List of all members.

Public Member Functions

 thread (int(*f)(void *), void *data=NULL)
 ~thread ()
void kill ()
void join ()
void detach ()
Uint32 get_id ()

Private Member Functions

 thread (const thread &)
void operator= (const thread &)

Private Attributes

SDL_Thread * thread_


Detailed Description

Definition at line 39 of file thread.hpp.


Constructor & Destructor Documentation

threading::thread::thread ( int(*)(void *)  f,
void *  data = NULL 
) [explicit]

Definition at line 63 of file thread.cpp.

threading::thread::~thread (  ) 

Definition at line 66 of file thread.cpp.

References join().

threading::thread::thread ( const thread  )  [private]


Member Function Documentation

void threading::thread::kill (  ) 

Definition at line 71 of file thread.cpp.

References thread_.

void threading::thread::join (  ) 

Definition at line 79 of file thread.cpp.

References thread_.

Referenced by upload_log::manager::manage(), upload_log::manager::~manager(), and ~thread().

void threading::thread::detach (  ) 

Definition at line 87 of file thread.cpp.

References detached_threads, and thread_.

Uint32 threading::thread::get_id (  )  [inline]

Definition at line 68 of file thread.hpp.

References thread_.

Referenced by network_worker_pool::manager::manager(), and process_queue().

void threading::thread::operator= ( const thread  )  [private]


Member Data Documentation

SDL_Thread* threading::thread::thread_ [private]

Definition at line 73 of file thread.hpp.

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


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

Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs