Managing Threads - the code to be executed in another thread is provided in functor objects derived from VTask.
More...
#include </home/werner/origo/vish/ocean/plankton/VThread.hpp>
List of all members.
Public Member Functions
-
virtual RefPtr< VTask > CurrentThread ()
- Get a reference to the currently running thread that calls this function.
-
virtual bool isrunning (const RefPtr< VTask > &what) const
- Check whether a specific thread is still running.
-
virtual bool sendMessage (const RefPtr< VTask > &what, const RefPtr< VTaskMessage > &)
- Send a message to a thread - it will receive a valueChanged() call, like any other VInput object.
-
virtual bool start (const RefPtr< VTask > &what)
- Fire a thread.
-
virtual bool wait (const RefPtr< VTask > &what)
- Wait for a thread to finish.
Detailed Description
Managing Threads - the code to be executed in another thread is provided in functor objects derived from VTask.
VThreadManager objects are not supposed to be created in application code. To get a VThreadManager, call
- Todo:
- Add cache-like management, probably using the MemCore::Cache class
The documentation for this class was generated from the following files:
- ocean/plankton/VThread.hpp
- ocean/plankton/VThread.cpp