clan::WorkItem Class Reference - ClanLib SDK
Description: clan::WorkItem Class Reference

Public Member Functions | List of all members
clan::WorkItem Class Referenceabstract
clanCore System

Interface for executing work on a worker thread. More...

`#include <work_queue.h>`

## Public Member Functions
virtual | ~WorkItem ()
virtual void | process_work ()=0
| Called by a worker thread to process work.
virtual void | work_completed ()
| Called by the WorkQueue thread to complete the work.

## Detailed Description

Interface for executing work on a worker thread.

## Constructor & Destructor Documentation

## ◆ ~WorkItem()

virtual clan::WorkItem::~WorkItem | ( |  | ) |
| inlinevirtual

## Member Function Documentation

## ◆ process_work()

virtual void clan::WorkItem::process_work | ( |  | ) |
| pure virtual

Called by a worker thread to process work.

## ◆ work_completed()

virtual void clan::WorkItem::work_completed | ( |  | ) |
| inlinevirtual

Called by the WorkQueue thread to complete the work.

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

- work_queue.h