1//
2// Runnable.h
3//
4// Library: Foundation
5// Package: Threading
6// Module: Thread
7//
8// Definition of the Runnable class.
9//
10// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
11// and Contributors.
12//
13// SPDX-License-Identifier: BSL-1.0
14//
15
16
17#ifndef Foundation_Runnable_INCLUDED
18#define Foundation_Runnable_INCLUDED
19
20
21#include "Poco/Foundation.h"
22
23
24namespace Poco {
25
26
27class Foundation_API Runnable
28 /// The Runnable interface with the run() method
29 /// must be implemented by classes that provide
30 /// an entry point for a thread.
31{
32public:
33 Runnable();
34 virtual ~Runnable();
35
36 virtual void run() = 0;
37 /// Do whatever the thread needs to do. Must
38 /// be overridden by subclasses.
39};
40
41
42} // namespace Poco
43
44
45#endif // Foundation_Runnable_INCLUDED
46