LibPkg
libpkg
thread.h
Go to the documentation of this file.
1
// This file is part of LibPkg.
2
//
3
// Copyright 2003-2020 Graham Shaw
4
//
5
// Licensed under the Apache License, Version 2.0 (the "License");
6
// you may not use this file except in compliance with the License.
7
// You may obtain a copy of the License at
8
//
9
// http://www.apache.org/licenses/LICENSE-2.0
10
//
11
// Unless required by applicable law or agreed to in writing, software
12
// distributed under the License is distributed on an "AS IS" BASIS,
13
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
// See the License for the specific language governing permissions and
15
// limitations under the License.
16
17
#ifndef LIBPKG_THREAD
18
#define LIBPKG_THREAD
19
20
namespace
pkg
{
21
23
class
thread
24
{
25
public
:
27
thread
();
28
30
virtual
~thread
();
31
protected
:
38
virtual
void
poll
();
39
public
:
43
static
void
poll_all
();
44
};
45
46
};
/* namespace pkg */
47
48
#endif
pkg::thread::thread
thread()
Construct thread.
Definition:
thread.cc:34
pkg
The namespace used to hold the package management library.
Definition:
auto_dir.cc:23
pkg::thread
A mixin class to represent a cooperative thread.
Definition:
thread.h:23
pkg::thread::poll_all
static void poll_all()
Poll all threads.
Definition:
thread.cc:48
pkg::thread::poll
virtual void poll()
Poll this thread.
Definition:
thread.cc:45
pkg::thread::~thread
virtual ~thread()
Destroy thread.
Definition:
thread.cc:39
Reference Manual
LibPkg
Version 0.9.0 (4 Sep 2020)