forked from IndySockets/Indy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIdFiberWeaver.pas
53 lines (44 loc) · 966 Bytes
/
IdFiberWeaver.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
$Project$
$Workfile$
$Revision$
$DateUTC$
$Id$
This file is part of the Indy (Internet Direct) project, and is offered
under the dual-licensing agreement described on the Indy website.
(http://www.indyproject.org/)
Copyright:
(c) 1993-2005, Chad Z. Hower and the Indy Pit Crew. All rights reserved.
}
{
$Log$
}
{
Rev 1.0 2004.02.03 12:38:50 AM czhower
Move
Rev 1.0 2003.10.19 2:50:54 PM czhower
Fiber cleanup
}
unit IdFiberWeaver;
interface
uses
IdBaseComponent, IdFiber,
Windows;
type
TIdFiberWeaver = class(TIdBaseComponent)
protected
procedure Relinquish(
AFiber: TIdFiber;
AReschedule: Boolean
); virtual; abstract;
public
procedure Add(
AFiber: TIdFiber
); virtual; abstract;
function WaitForFibers(
ATimeout: Cardinal = Infinite
): Boolean;
virtual; abstract;
end;
implementation
end.