File: RunLoop.html

package info (click to toggle)
tom 1.1.1-2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 6,340 kB
  • ctags: 2,244
  • sloc: objc: 27,863; ansic: 9,804; sh: 7,411; yacc: 3,377; lex: 966; asm: 208; makefile: 62; cpp: 10
file content (118 lines) | stat: -rw-r--r-- 5,195 bytes parent folder | download
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<html><head><title>File too/RunLoop</title></head>
<body BGCOLOR="#ffffff" TEXT="#000000" LINK="#000000" VLINK="#000000">
<h1>File too/RunLoop</h1>
<hr><h2>class <a href="index.html">too</a>.<a name="RunLoop" href="#i_RunLoop">RunLoop</a></h2>
<h3>Inherits</h3>
<dl>
<dt>State supers
<dd><a href="../tom/index.html">tom</a>.<a href="../tom/State.html#State">State</a>
</dl>
<h3>variables</h3>
<dl>
<dt><b><code>
local static instance (id) current;</code></b>
<dd>This thread's run loop.

</dl>
<h3>methods</h3>
<dl><dt><b><pre>instance (id)
  current;
</pre></b><dd>
Return this thread's <b><code><a href="RunLoop.html#RunLoop">RunLoop</a></b></code>, creating it if it does not yet
    exist.
<p></dl><h2>instance <a href="index.html">too</a>.<a name="i_RunLoop" href="#RunLoop">RunLoop</a></h2>
<h3>variables</h3>
<dl>
<dt><b><code>
<a href="DescriptorSet.html#DescriptorSet">DescriptorSet</a> read_set;</code></b>
<dd>The read and write sets.

<dt><b><code>
<a href="DescriptorSet.html#DescriptorSet">DescriptorSet</a> write_set;</code></b>
<dd>
<dt><b><code>
<a href="../tom/index.html">tom</a>.<a href="../tom/Heap.html#Heap">Heap</a> timers;</code></b>
<dd>The timers scheduled with us.

<dt><b><code>
public mutable <a href="RunLoop.html#RunLoopDelegate">RunLoopDelegate</a> delegate;</code></b>
<dd>The delegate, if we have one.

<dt><b><code>
boolean d_changed;</code></b>
<dd>Iff <code>TRUE</code>, one of the descriptor sets was changed, indicating to
      the <code>run</code> method that it should update some of its local variables.


<dt><b><code>
boolean t_changed;</code></b>
<dd>Iff <code>TRUE</code>, the <code>timers</code> was changed.

</dl>
<h3>methods</h3>
<dl><dt><b><pre>id (self)
  init;
</pre></b><dd>
Designated initializer.
<p><dt><b><pre>void
  run;
</pre></b><dd>
Run this runloop.  This method does not return.
<p></dl><h4>Descriptors</h4>
<dl><dt><b><pre>void
  addDescriptorForRead <a href="../tom/index.html">tom</a>.<a href="../tom/Descriptor.html#Descriptor">Descriptor</a> descriptor
              delegate <a href="DescriptorDelegate.html#DescriptorReadDelegate">DescriptorReadDelegate</a> delegate;
</pre></b><dd>
Add the <code>descriptor</code> to this runloop, read events on which are to be
    handled by the <code>delegate</code>.  This does not protect against adding the
    <code>descriptor</code> to only a single runloop.
<p><dt><b><pre>void
  addDescriptorForWrite <a href="../tom/index.html">tom</a>.<a href="../tom/Descriptor.html#Descriptor">Descriptor</a> descriptor
               delegate <a href="DescriptorDelegate.html#DescriptorWriteDelegate">DescriptorWriteDelegate</a> delegate;
</pre></b><dd>
Similar to <code>addDescriptorForRead delegate</code>, add the <code>descriptor</code> to
    this runloop, write events on which are to be handled by the
    <code>delegate</code>.
<p><dt><b><pre>void
  removeReadDescriptor <a href="../tom/index.html">tom</a>.<a href="../tom/Descriptor.html#Descriptor">Descriptor</a> descriptor;
</pre></b><dd>
Remove the <code>descriptor</code> from this runloop.  No check is performed on
    whether the <code>descriptor</code> actually is registered for reading with this
    runloop.
<p><dt><b><pre>void
  removeWriteDescriptor <a href="../tom/index.html">tom</a>.<a href="../tom/Descriptor.html#Descriptor">Descriptor</a> descriptor;
</pre></b><dd>
Similar to <code>removeReadDescriptor</code>, but the <code>descriptor</code> is removed
    from the write set.
<p></dl><h4>Timers</h4>
<dl><dt><b><pre>void
  add_timer <a href="Timer.html#Timer">Timer</a> timer;
</pre></b><dd>
Add the <code>timer</code> to the current run loop.
<p><dt><b><pre>void
  remove_timer <a href="Timer.html#Timer">Timer</a> timer;
</pre></b><dd>
Remove the <code>timer</code> which is scheduled with this run loop.
<p></dl><hr><h2>class <a href="index.html">too</a>.<a name="RunLoopDelegate" href="#i_RunLoopDelegate">RunLoopDelegate</a></h2>
<h2>instance <a href="index.html">too</a>.<a name="i_RunLoopDelegate" href="#RunLoopDelegate">RunLoopDelegate</a></h2>
<h3>methods</h3>
<dl><dt><b><pre>deferred void
  runLoopWillSelect <a href="RunLoop.html#RunLoop">RunLoop</a> loop;
</pre></b><dd>
Be notified that the <b><code><a href="RunLoop.html#RunLoop">RunLoop</a></b></code> <code>loop</code> will do another select.
<p></dl><hr><h2>class <a href="../tom/index.html">tom</a>.<a href="../tom/All.html#All">All</a> (RunLoop)</h2>
This extension of <b><code><a href="../tom/index.html">tom</a>.<a href="../tom/All.html#All">All</a></b></code> provides delayed <code>perform</code>ance.
<h2>instance <a href="../tom/index.html">tom</a>.<a href="../tom/All.html#All">All</a> (RunLoop)</h2>
<h3>methods</h3>
<dl><dt><b><pre>void
  perform selector sel
    after double seconds
     with dynamic arguments
pre
  seconds >= 0.0;
</pre></b><dd>
Perform the selector <code>sel</code> with the <code>arguments</code> after <code>seconds</code>
    delay.  Even if <code>seconds</code> is 0, the invocation is not fired
    immediately; a timer is always set to have the <b><code><a href="RunLoop.html#RunLoop">RunLoop</a></b></code> fire the
    invocation.
<p></dl><hr><address>Generated by tm 1.01.</address></body></html>