vigra_ext::ThreadManager Class Reference

Thread "manager". More...

#include <MultiThreadOperations.h>

List of all members.

Public Member Functions

 ThreadManager ()
virtual ~ThreadManager ()
unsigned getNThreads ()
void setNThreads (unsigned n)

Static Public Member Functions

static ThreadManagerget ()

Private Attributes

unsigned m_nThreads

Static Private Attributes

static ThreadManagerm_instance = 0


Detailed Description

Thread "manager".

currently only used to query the number of threads that should be used for image processing operations

Definition at line 42 of file MultiThreadOperations.h.


Constructor & Destructor Documentation

vigra_ext::ThreadManager::ThreadManager (  )  [inline]

Definition at line 46 of file MultiThreadOperations.h.

virtual vigra_ext::ThreadManager::~ThreadManager (  )  [inline, virtual]

Definition at line 51 of file MultiThreadOperations.h.


Member Function Documentation

static ThreadManager& vigra_ext::ThreadManager::get (  )  [inline, static]

Definition at line 54 of file MultiThreadOperations.h.

Referenced by main(), vigra_ext::multithreadOperation(), vigra_ext::transformImageAlphaInternMT(), vigra_ext::transformImageInternMT(), PreviewPanel::updatePreview(), and PreviewPanel::~PreviewPanel().

unsigned vigra_ext::ThreadManager::getNThreads (  )  [inline]

Definition at line 62 of file MultiThreadOperations.h.

Referenced by vigra_ext::multithreadOperation(), vigra_ext::transformImageAlphaInternMT(), and vigra_ext::transformImageInternMT().

void vigra_ext::ThreadManager::setNThreads ( unsigned  n  )  [inline]

Definition at line 66 of file MultiThreadOperations.h.

Referenced by main(), and PreviewPanel::updatePreview().


Member Data Documentation

ThreadManager * vigra_ext::ThreadManager::m_instance = 0 [static, private]

Definition at line 72 of file MultiThreadOperations.h.

unsigned vigra_ext::ThreadManager::m_nThreads [private]

Definition at line 71 of file MultiThreadOperations.h.


The documentation for this class was generated from the following files:
Generated on 1 Nov 2014 for Hugintrunk by  doxygen 1.4.7