slave 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +390 -0
- data/doc/classes/Slave.html +765 -790
- data/doc/classes/Slave/LifeLine.html +262 -249
- data/doc/classes/Slave/ThreadSafe.html +184 -176
- data/doc/classes/Slave/ThreadSafeHash.html +85 -78
- data/doc/created.rid +1 -1
- data/doc/dot/f_0.dot +1 -1
- data/doc/dot/f_0.jpg +0 -0
- data/doc/dot/f_1.dot +1 -10
- data/doc/dot/f_1.jpg +0 -0
- data/doc/files/README.html +87 -70
- data/doc/files/lib/slave_rb.html +77 -83
- data/doc/fr_class_index.html +12 -13
- data/doc/fr_file_index.html +10 -10
- data/doc/fr_method_index.html +38 -39
- data/doc/index.html +3 -3
- data/doc/rdoc-style.css +79 -43
- data/install.rb +0 -0
- data/lib/slave.rb +1 -1
- data/rdoc.cmd +0 -0
- metadata +76 -64
- data/slave-1.2.1.gem +0 -0
@@ -1,45 +1,45 @@
|
|
1
1
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
2
|
<!DOCTYPE html
|
3
3
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"DTD/xhtml1-transitional.dtd">
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
5
|
|
6
6
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
7
|
<head>
|
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
|
-
|
8
|
+
<title>Class: Slave::ThreadSafe</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
43
|
|
44
44
|
</head>
|
45
45
|
<body>
|
@@ -47,15 +47,18 @@
|
|
47
47
|
|
48
48
|
|
49
49
|
<div id="classHeader">
|
50
|
-
<h1>Slave::ThreadSafe <sup class="type-note">(Class)</sup></h1>
|
51
50
|
<table class="header-table">
|
51
|
+
<tr class="top-aligned-row">
|
52
|
+
<td><strong>Class</strong></td>
|
53
|
+
<td class="class-name-in-header">Slave::ThreadSafe</td>
|
54
|
+
</tr>
|
52
55
|
<tr class="top-aligned-row">
|
53
56
|
<td><strong>In:</strong></td>
|
54
57
|
<td>
|
55
58
|
<a href="../../files/lib/slave_rb.html">
|
56
59
|
lib/slave.rb
|
57
60
|
</a>
|
58
|
-
|
61
|
+
<br />
|
59
62
|
</td>
|
60
63
|
</tr>
|
61
64
|
|
@@ -69,23 +72,24 @@
|
|
69
72
|
</div>
|
70
73
|
<!-- banner header -->
|
71
74
|
|
72
|
-
|
75
|
+
<div id="bodyContent">
|
76
|
+
|
73
77
|
|
74
78
|
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
<area shape="
|
79
|
-
<area shape="RECT" coords="27,98,99,50" href="../Slave.html" alt="Slave">
|
79
|
+
<div id="contextContent">
|
80
|
+
<div id="diagram">
|
81
|
+
<map id="map" name="map">
|
82
|
+
<area shape="rect" coords="27,50,99,98" href="../Slave.html" alt="Slave" />
|
80
83
|
</map>
|
81
|
-
<img src="../../dot/f_1.jpg" usemap="#map" border=0 alt="
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
<a href="ThreadSafe.html">ThreadSafe</a> is a delegate wrapper
|
87
|
-
for implementing gross thread
|
88
|
-
object is wrapped with this
|
84
|
+
<img src="../../dot/f_1.jpg" usemap="#map" border="0" alt="dot/f_1.jpg">
|
85
|
+
</div>
|
86
|
+
|
87
|
+
<div id="description">
|
88
|
+
<p>
|
89
|
+
<a href="ThreadSafe.html">ThreadSafe</a> is a delegate wrapper <a
|
90
|
+
href="ThreadSafe.html#M000021">class</a> used for implementing gross thread
|
91
|
+
safety around existing objects. when an object is wrapped with this <a
|
92
|
+
href="ThreadSafe.html#M000021">class</a> as
|
89
93
|
</p>
|
90
94
|
<pre>
|
91
95
|
ts = ThreadSafe.new{ AnyObject.new }
|
@@ -96,51 +100,55 @@ calls are now thread safe. this is the mechanism behind the
|
|
96
100
|
‘threadsafe’/:threadsafe keyword to Slave#initialize
|
97
101
|
</p>
|
98
102
|
|
99
|
-
|
103
|
+
</div>
|
104
|
+
|
100
105
|
|
106
|
+
</div>
|
101
107
|
|
102
|
-
|
103
|
-
|
108
|
+
<div id="method-list">
|
109
|
+
<h3 class="section-bar">Methods</h3>
|
104
110
|
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
111
|
+
<div class="name-list">
|
112
|
+
<a href="#M000021">class</a>
|
113
|
+
<a href="#M000017">ex</a>
|
114
|
+
<a href="#M000020">inspect</a>
|
115
|
+
<a href="#M000018">method_missing</a>
|
116
|
+
<a href="#M000016">new</a>
|
117
|
+
<a href="#M000019">respond_to?</a>
|
118
|
+
</div>
|
119
|
+
</div>
|
114
120
|
|
121
|
+
</div>
|
115
122
|
|
116
123
|
|
124
|
+
<!-- if includes -->
|
117
125
|
|
118
|
-
|
126
|
+
<div id="section">
|
119
127
|
|
120
|
-
</div>
|
121
128
|
|
122
129
|
|
123
130
|
|
124
|
-
<!-- if includes -->
|
125
131
|
|
132
|
+
|
126
133
|
|
127
|
-
<!-- if method_list -->
|
128
|
-
<div id="methods">
|
129
|
-
<h2 class="section-bar">Public Class methods</h2>
|
130
134
|
|
131
|
-
|
132
|
-
|
135
|
+
<!-- if method_list -->
|
136
|
+
<div id="methods">
|
137
|
+
<h3 class="section-bar">Public Class methods</h3>
|
133
138
|
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
139
|
+
<div id="method-M000016" class="method-detail">
|
140
|
+
<a name="M000016"></a>
|
141
|
+
|
142
|
+
<div class="method-heading">
|
143
|
+
<a href="#M000016" class="method-signature">
|
144
|
+
<span class="method-name">new</span><span class="method-args">(object)</span>
|
145
|
+
</a>
|
146
|
+
</div>
|
147
|
+
|
148
|
+
<div class="method-description">
|
149
|
+
<p><a class="source-toggle" href="#"
|
150
|
+
onclick="toggleCode('M000016-source');return false;">[Source]</a></p>
|
151
|
+
<div class="method-source-code" id="M000016-source">
|
144
152
|
<pre>
|
145
153
|
<span class="ruby-comment cmt"># File lib/slave.rb, line 130</span>
|
146
154
|
130: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> <span class="ruby-identifier">object</span>
|
@@ -148,132 +156,132 @@ calls are now thread safe. this is the mechanism behind the
|
|
148
156
|
132: <span class="ruby-ivar">@sync</span> = <span class="ruby-constant">Sync</span>.<span class="ruby-identifier">new</span>
|
149
157
|
133: <span class="ruby-keyword kw">end</span>
|
150
158
|
</pre>
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
159
|
+
</div>
|
160
|
+
</div>
|
161
|
+
</div>
|
162
|
+
|
163
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
164
|
+
|
165
|
+
<div id="method-M000021" class="method-detail">
|
166
|
+
<a name="M000021"></a>
|
167
|
+
|
168
|
+
<div class="method-heading">
|
169
|
+
<a href="#M000021" class="method-signature">
|
170
|
+
<span class="method-name">class</span><span class="method-args">()</span>
|
171
|
+
</a>
|
172
|
+
</div>
|
173
|
+
|
174
|
+
<div class="method-description">
|
175
|
+
<p><a class="source-toggle" href="#"
|
176
|
+
onclick="toggleCode('M000021-source');return false;">[Source]</a></p>
|
177
|
+
<div class="method-source-code" id="M000021-source">
|
170
178
|
<pre>
|
171
179
|
<span class="ruby-comment cmt"># File lib/slave.rb, line 146</span>
|
172
180
|
146: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">class</span>
|
173
181
|
147: <span class="ruby-identifier">ex</span>{ <span class="ruby-ivar">@object</span>.<span class="ruby-identifier">class</span> }
|
174
182
|
148: <span class="ruby-keyword kw">end</span>
|
175
183
|
</pre>
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
184
|
+
</div>
|
185
|
+
</div>
|
186
|
+
</div>
|
187
|
+
|
188
|
+
<div id="method-M000017" class="method-detail">
|
189
|
+
<a name="M000017"></a>
|
190
|
+
|
191
|
+
<div class="method-heading">
|
192
|
+
<a href="#M000017" class="method-signature">
|
193
|
+
<span class="method-name">ex</span><span class="method-args">() {|| ...}</span>
|
194
|
+
</a>
|
195
|
+
</div>
|
196
|
+
|
197
|
+
<div class="method-description">
|
198
|
+
<p><a class="source-toggle" href="#"
|
199
|
+
onclick="toggleCode('M000017-source');return false;">[Source]</a></p>
|
200
|
+
<div class="method-source-code" id="M000017-source">
|
193
201
|
<pre>
|
194
202
|
<span class="ruby-comment cmt"># File lib/slave.rb, line 134</span>
|
195
203
|
134: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ex</span>
|
196
204
|
135: <span class="ruby-ivar">@sync</span>.<span class="ruby-identifier">synchronize</span>{ <span class="ruby-keyword kw">yield</span> }
|
197
205
|
136: <span class="ruby-keyword kw">end</span>
|
198
206
|
</pre>
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
207
|
+
</div>
|
208
|
+
</div>
|
209
|
+
</div>
|
210
|
+
|
211
|
+
<div id="method-M000020" class="method-detail">
|
212
|
+
<a name="M000020"></a>
|
213
|
+
|
214
|
+
<div class="method-heading">
|
215
|
+
<a href="#M000020" class="method-signature">
|
216
|
+
<span class="method-name">inspect</span><span class="method-args">()</span>
|
217
|
+
</a>
|
218
|
+
</div>
|
219
|
+
|
220
|
+
<div class="method-description">
|
221
|
+
<p><a class="source-toggle" href="#"
|
222
|
+
onclick="toggleCode('M000020-source');return false;">[Source]</a></p>
|
223
|
+
<div class="method-source-code" id="M000020-source">
|
216
224
|
<pre>
|
217
225
|
<span class="ruby-comment cmt"># File lib/slave.rb, line 143</span>
|
218
226
|
143: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">inspect</span>
|
219
227
|
144: <span class="ruby-identifier">ex</span>{ <span class="ruby-ivar">@object</span>.<span class="ruby-identifier">inspect</span> }
|
220
228
|
145: <span class="ruby-keyword kw">end</span>
|
221
229
|
</pre>
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
230
|
+
</div>
|
231
|
+
</div>
|
232
|
+
</div>
|
233
|
+
|
234
|
+
<div id="method-M000018" class="method-detail">
|
235
|
+
<a name="M000018"></a>
|
236
|
+
|
237
|
+
<div class="method-heading">
|
238
|
+
<a href="#M000018" class="method-signature">
|
239
|
+
<span class="method-name">method_missing</span><span class="method-args">(m, *a, &b)</span>
|
240
|
+
</a>
|
241
|
+
</div>
|
242
|
+
|
243
|
+
<div class="method-description">
|
244
|
+
<p><a class="source-toggle" href="#"
|
245
|
+
onclick="toggleCode('M000018-source');return false;">[Source]</a></p>
|
246
|
+
<div class="method-source-code" id="M000018-source">
|
239
247
|
<pre>
|
240
248
|
<span class="ruby-comment cmt"># File lib/slave.rb, line 137</span>
|
241
249
|
137: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">method_missing</span> <span class="ruby-identifier">m</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">a</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">b</span>
|
242
250
|
138: <span class="ruby-identifier">ex</span>{ <span class="ruby-ivar">@object</span>.<span class="ruby-identifier">send</span> <span class="ruby-identifier">m</span>, <span class="ruby-operator">*</span><span class="ruby-identifier">a</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">b</span> }
|
243
251
|
139: <span class="ruby-keyword kw">end</span>
|
244
252
|
</pre>
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
253
|
+
</div>
|
254
|
+
</div>
|
255
|
+
</div>
|
256
|
+
|
257
|
+
<div id="method-M000019" class="method-detail">
|
258
|
+
<a name="M000019"></a>
|
259
|
+
|
260
|
+
<div class="method-heading">
|
261
|
+
<a href="#M000019" class="method-signature">
|
262
|
+
<span class="method-name">respond_to?</span><span class="method-args">(*a, &b)</span>
|
263
|
+
</a>
|
264
|
+
</div>
|
265
|
+
|
266
|
+
<div class="method-description">
|
267
|
+
<p><a class="source-toggle" href="#"
|
268
|
+
onclick="toggleCode('M000019-source');return false;">[Source]</a></p>
|
269
|
+
<div class="method-source-code" id="M000019-source">
|
262
270
|
<pre>
|
263
271
|
<span class="ruby-comment cmt"># File lib/slave.rb, line 140</span>
|
264
|
-
140: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">respond_to?</span> <span class="ruby-identifier">
|
265
|
-
141: <span class="ruby-identifier">ex</span>{ <span class="ruby-ivar">@object</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-identifier">
|
272
|
+
140: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">respond_to?</span> <span class="ruby-operator">*</span><span class="ruby-identifier">a</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">b</span>
|
273
|
+
141: <span class="ruby-identifier">ex</span>{ <span class="ruby-ivar">@object</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-operator">*</span><span class="ruby-identifier">a</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">b</span> }
|
266
274
|
142: <span class="ruby-keyword kw">end</span>
|
267
275
|
</pre>
|
268
|
-
|
269
|
-
|
270
|
-
|
276
|
+
</div>
|
277
|
+
</div>
|
278
|
+
</div>
|
271
279
|
|
272
280
|
|
273
|
-
|
281
|
+
</div>
|
274
282
|
|
275
283
|
|
276
|
-
|
284
|
+
</div>
|
277
285
|
|
278
286
|
|
279
287
|
<div id="validator-badges">
|
@@ -1,45 +1,45 @@
|
|
1
1
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
2
|
<!DOCTYPE html
|
3
3
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"DTD/xhtml1-transitional.dtd">
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
5
|
|
6
6
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
7
|
<head>
|
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
|
-
|
8
|
+
<title>Class: Slave::ThreadSafeHash</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
43
|
|
44
44
|
</head>
|
45
45
|
<body>
|
@@ -47,15 +47,18 @@
|
|
47
47
|
|
48
48
|
|
49
49
|
<div id="classHeader">
|
50
|
-
<h1>Slave::ThreadSafeHash <sup class="type-note">(Class)</sup></h1>
|
51
50
|
<table class="header-table">
|
51
|
+
<tr class="top-aligned-row">
|
52
|
+
<td><strong>Class</strong></td>
|
53
|
+
<td class="class-name-in-header">Slave::ThreadSafeHash</td>
|
54
|
+
</tr>
|
52
55
|
<tr class="top-aligned-row">
|
53
56
|
<td><strong>In:</strong></td>
|
54
57
|
<td>
|
55
58
|
<a href="../../files/lib/slave_rb.html">
|
56
59
|
lib/slave.rb
|
57
60
|
</a>
|
58
|
-
|
61
|
+
<br />
|
59
62
|
</td>
|
60
63
|
</tr>
|
61
64
|
|
@@ -69,78 +72,82 @@
|
|
69
72
|
</div>
|
70
73
|
<!-- banner header -->
|
71
74
|
|
72
|
-
|
75
|
+
<div id="bodyContent">
|
76
|
+
|
73
77
|
|
74
78
|
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
<area shape="
|
79
|
-
<area shape="RECT" coords="27,98,99,50" href="../Slave.html" alt="Slave">
|
79
|
+
<div id="contextContent">
|
80
|
+
<div id="diagram">
|
81
|
+
<map id="map" name="map">
|
82
|
+
<area shape="rect" coords="27,50,99,98" href="../Slave.html" alt="Slave" />
|
80
83
|
</map>
|
81
|
-
<img src="../../dot/f_1.jpg" usemap="#map" border=0 alt="
|
82
|
-
|
84
|
+
<img src="../../dot/f_1.jpg" usemap="#map" border="0" alt="dot/f_1.jpg">
|
85
|
+
</div>
|
83
86
|
|
84
|
-
|
85
|
-
|
87
|
+
<div id="description">
|
88
|
+
<p>
|
86
89
|
a simple thread safe hash used to map object_id to a set of file
|
87
90
|
descriptors in the <a href="LifeLine.html">LifeLine</a> class. see
|
88
91
|
LifeLine::FDS
|
89
92
|
</p>
|
90
93
|
|
91
|
-
|
94
|
+
</div>
|
92
95
|
|
93
96
|
|
94
|
-
|
95
|
-
<h2 class="section-bar">Methods</h2>
|
97
|
+
</div>
|
96
98
|
|
97
|
-
|
98
|
-
|
99
|
-
</div>
|
100
|
-
</div>
|
99
|
+
<div id="method-list">
|
100
|
+
<h3 class="section-bar">Methods</h3>
|
101
101
|
|
102
|
+
<div class="name-list">
|
103
|
+
<a href="#M000030">new</a>
|
104
|
+
</div>
|
105
|
+
</div>
|
106
|
+
|
107
|
+
</div>
|
102
108
|
|
103
109
|
|
110
|
+
<!-- if includes -->
|
104
111
|
|
105
|
-
|
112
|
+
<div id="section">
|
106
113
|
|
107
|
-
</div>
|
108
114
|
|
109
115
|
|
110
116
|
|
111
|
-
<!-- if includes -->
|
112
117
|
|
118
|
+
|
113
119
|
|
114
|
-
<!-- if method_list -->
|
115
|
-
<div id="methods">
|
116
|
-
<h2 class="section-bar">Public Class methods</h2>
|
117
120
|
|
118
|
-
|
119
|
-
|
121
|
+
<!-- if method_list -->
|
122
|
+
<div id="methods">
|
123
|
+
<h3 class="section-bar">Public Class methods</h3>
|
120
124
|
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
125
|
+
<div id="method-M000030" class="method-detail">
|
126
|
+
<a name="M000030"></a>
|
127
|
+
|
128
|
+
<div class="method-heading">
|
129
|
+
<a href="#M000030" class="method-signature">
|
130
|
+
<span class="method-name">new</span><span class="method-args">(*a, &b)</span>
|
131
|
+
</a>
|
132
|
+
</div>
|
133
|
+
|
134
|
+
<div class="method-description">
|
135
|
+
<p><a class="source-toggle" href="#"
|
136
|
+
onclick="toggleCode('M000030-source');return false;">[Source]</a></p>
|
137
|
+
<div class="method-source-code" id="M000030-source">
|
131
138
|
<pre>
|
132
139
|
<span class="ruby-comment cmt"># File lib/slave.rb, line 156</span>
|
133
140
|
156: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">new</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">a</span>, <span class="ruby-operator">&</span><span class="ruby-identifier">b</span>) <span class="ruby-constant">ThreadSafe</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">super</span>) <span class="ruby-keyword kw">end</span>
|
134
141
|
</pre>
|
135
|
-
|
136
|
-
|
137
|
-
|
142
|
+
</div>
|
143
|
+
</div>
|
144
|
+
</div>
|
138
145
|
|
139
146
|
|
140
|
-
|
147
|
+
</div>
|
141
148
|
|
142
149
|
|
143
|
-
|
150
|
+
</div>
|
144
151
|
|
145
152
|
|
146
153
|
<div id="validator-badges">
|