|
/**
* @file
*/
#pragma once
#include <windows.h>
/**
* Interface to the threadpool.
* This MUST be derived from with the execute method overridden to use your own custom
* handler.
*
* @warning execute is declared as throwing no exceptions. This means that you MUST deal with exceptions in the
* command object.
*
* @author Peter Hancock
*
*/
class ThreadRequest
{
public:
ThreadRequest(){}
virtual ~ThreadRequest(void){}
virtual void operator()(int threadId) throw() = 0; ///< Must be overridden by your custom dispatch function.
};
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Nutcase triathlete that likes doing long course triathlons. Planning on competing in the Hawaiian Ironman at some stage - in fact - just as soon as I qualify.