Ignore:
Timestamp:
Oct 21, 2012, 12:05:47 AM (12 years ago)
Author:
Torben Dannhauer
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • experimental/Threading/Threading/ThreadWorkerBase.h

    r422 r425  
    11#pragma once
     2#include <osg/Referenced>
     3
     4
     5class ThreadedWorker;
    26
    37/**
     
    59 *
    610 * Just overload the operator() with your code you want to execute threaded in a loop.
    7  * Each execution will be completed by the thread, if the thread is cancels during a run, the cancelation will be postponed until the execution of the functor is completed.
     11 * Each execution will be completed by the thread, if the thread is set as done/canceled during a run, the cancelation will be postponed until the execution of the functor is completed.
    812 *
    9  * Note: This functor will be executed in a loop until the thread is canceled or the parameter done is set to true.
     13 * Note: This functor will be executed in a loop until the thread is canceled or set as done=true.
    1014 *
    1115 * @author Torben Dannhauer
    1216 * @date  Okt 2012
    1317 */
    14 class ThreadWorkerBase
     18class ThreadWorkerBase : public osg::Referenced
    1519{
    1620public:
     
    1822        virtual ~ThreadWorkerBase() ;
    1923
    20         void operator() (bool& _threadDone);
     24        virtual void operator() (ThreadedWorker* threadObject) = 0;
     25
     26
     27
    2128};
Note: See TracChangeset for help on using the changeset viewer.