If you can read this text, it means you are not experiencing this website at its best. This website is designed for used with a standards-compliant browser.
Current version: 2.3.2
ZThreads
A platform-independent, multi-threading and synchronization library for C++
Home Documentation Downloads CVS Contact
Task Class Reference

#include <Task.h>

Inheritance diagram for Task:
CountedPtr< Runnable, AtomicCount >

Public Member Functions

 Task (Runnable *raw)
 
template<typename U >
 Task (U *raw)
 
 Task (const CountedPtr< Runnable, AtomicCount > &ptr)
 
template<typename U , typename V >
 Task (const CountedPtr< U, V > &ptr)
 
void operator() ()
 
- Public Member Functions inherited from CountedPtr< Runnable, AtomicCount >
 CountedPtr (Runnable *raw)
 
 CountedPtr (U *raw)
 
 CountedPtr (const CountedPtr &ptr)
 
 CountedPtr (const CountedPtr< U, V > &ptr)
 
const CountedPtroperator= (const CountedPtr &ptr)
 
const CountedPtroperator= (const CountedPtr< U, V > &ptr)
 
void reset ()
 
void swap (CountedPtr &ptr)
 
void swap (CountedPtr< U, V > &ptr)
 
bool less (const CountedPtr &ptr) const
 
bool less (const CountedPtr< U, V > &ptr) const
 
bool equal (const CountedPtr &ptr) const
 
bool equal (const CountedPtr< U, V > &ptr) const
 
Runnableoperator* ()
 
Runnableoperator-> ()
 
const Runnableoperator-> () const
 
bool operator! () const
 
 operator bool () const
 

Detailed Description

Author
Eric Crahen http://www.code-foo.com
Date
<2003-07-20T05:22:38-0400>
Version
2.3.0

A Task provides a CountedPtr wrapper for Runnable objects. This wrapper enables an implicit conversion from a Runnable* to a Task adding some syntactic sugar to the interface.


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