LibPkg
Main Page
Namespaces
Classes
Files
File List
File Members
libpkg
thread.h
Go to the documentation of this file.
1
// This file is part of LibPkg.
2
// Copyright © 2003 Graham Shaw.
3
// Distribution and use are subject to the GNU Lesser General Public License,
4
// a copy of which may be found in the file !LibPkg.Copyright.
5
6
#ifndef LIBPKG_THREAD
7
#define LIBPKG_THREAD
8
9
namespace
pkg {
10
12
class
thread
13
{
14
public
:
16
thread
();
17
19
virtual
~thread
();
20
protected
:
27
virtual
void
poll
();
28
public
:
32
static
void
poll_all
();
33
};
34
35
};
/* namespace pkg */
36
37
#endif
pkg::thread::thread
thread()
Construct thread.
Definition:
thread.cc:23
pkg::thread
A mixin class to represent a cooperative thread.
Definition:
thread.h:12
pkg::thread::poll_all
static void poll_all()
Poll all threads.
Definition:
thread.cc:37
pkg::thread::poll
virtual void poll()
Poll this thread.
Definition:
thread.cc:34
pkg::thread::~thread
virtual ~thread()
Destroy thread.
Definition:
thread.cc:28
Reference Manual
LibPkg
Version 0.6.1 (28 Jan 2015)