Skip to content

Commit be77ce2

Browse files
committed
3bf31e1 Merge pull request #140 from obrok/patch-2
1 parent 3ec381d commit be77ce2

File tree

148 files changed

+49248
-4236
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

148 files changed

+49248
-4236
lines changed

Atomic.html

Lines changed: 307 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,307 @@
1+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4+
<head>
5+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6+
<title>
7+
Class: Atomic
8+
9+
&mdash; Concurrent
10+
11+
</title>
12+
13+
<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
14+
15+
<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
16+
17+
<script type="text/javascript" charset="utf-8">
18+
hasFrames = window.top.frames.main ? true : false;
19+
relpath = '';
20+
framesUrl = "frames.html#!Atomic.html";
21+
</script>
22+
23+
24+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
25+
26+
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
27+
28+
29+
</head>
30+
<body>
31+
<div id="header">
32+
<div id="menu">
33+
34+
<a href="_index.html">Index (A)</a> &raquo;
35+
36+
37+
<span class="title">Atomic</span>
38+
39+
40+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41+
</div>
42+
43+
<div id="search">
44+
45+
<a class="full_list_link" id="class_list_link"
46+
href="class_list.html">
47+
Class List
48+
</a>
49+
50+
<a class="full_list_link" id="method_list_link"
51+
href="method_list.html">
52+
Method List
53+
</a>
54+
55+
<a class="full_list_link" id="file_list_link"
56+
href="file_list.html">
57+
File List
58+
</a>
59+
60+
</div>
61+
<div class="clear"></div>
62+
</div>
63+
64+
<iframe id="search_frame"></iframe>
65+
66+
<div id="content"><h1>Class: Atomic
67+
68+
69+
70+
</h1>
71+
72+
<dl class="box">
73+
74+
<dt class="r1">Inherits:</dt>
75+
<dd class="r1">
76+
<span class="inheritName"><span class='object_link'><a href="Concurrent/Atomic.html" title="Concurrent::Atomic (class)">Concurrent::Atomic</a></span></span>
77+
78+
<ul class="fullTree">
79+
<li>Object</li>
80+
81+
<li class="next"><span class='object_link'><a href="Concurrent/MutexAtomic.html" title="Concurrent::MutexAtomic (class)">Concurrent::MutexAtomic</a></span></li>
82+
83+
<li class="next"><span class='object_link'><a href="Concurrent/Atomic.html" title="Concurrent::Atomic (class)">Concurrent::Atomic</a></span></li>
84+
85+
<li class="next">Atomic</li>
86+
87+
</ul>
88+
<a href="#" class="inheritanceTree">show all</a>
89+
90+
</dd>
91+
92+
93+
94+
95+
96+
97+
98+
99+
100+
<dt class="r2 last">Defined in:</dt>
101+
<dd class="r2 last">lib/concurrent/atomic.rb</dd>
102+
103+
</dl>
104+
<div class="clear"></div>
105+
106+
<h2>Overview</h2><div class="docstring">
107+
<div class="discussion">
108+
<p>An object reference that may be updated atomically.</p>
109+
110+
<pre class="code ruby"><code class="ruby">Testing with ruby 2.1.2
111+
112+
*** Sequential updates ***
113+
user system total real
114+
no lock 0.000000 0.000000 0.000000 ( 0.005502)
115+
mutex 0.030000 0.000000 0.030000 ( 0.025158)
116+
MutexAtomic 0.100000 0.000000 0.100000 ( 0.103096)
117+
CAtomic 0.040000 0.000000 0.040000 ( 0.034012)
118+
119+
*** Parallel updates ***
120+
user system total real
121+
no lock 0.010000 0.000000 0.010000 ( 0.009387)
122+
mutex 0.030000 0.010000 0.040000 ( 0.032545)
123+
MutexAtomic 0.830000 2.280000 3.110000 ( 2.146622)
124+
CAtomic 0.040000 0.000000 0.040000 ( 0.038332)
125+
126+
Testing with jruby 1.9.3
127+
128+
*** Sequential updates ***
129+
user system total real
130+
no lock 0.170000 0.000000 0.170000 ( 0.051000)
131+
mutex 0.370000 0.010000 0.380000 ( 0.121000)
132+
MutexAtomic 1.530000 0.020000 1.550000 ( 0.471000)
133+
JavaAtomic 0.370000 0.010000 0.380000 ( 0.112000)
134+
135+
*** Parallel updates ***
136+
user system total real
137+
no lock 0.390000 0.000000 0.390000 ( 0.105000)
138+
mutex 0.480000 0.040000 0.520000 ( 0.145000)
139+
MutexAtomic 1.600000 0.180000 1.780000 ( 0.511000)
140+
JavaAtomic 0.460000 0.010000 0.470000 ( 0.131000)
141+
</code></pre>
142+
143+
144+
</div>
145+
</div>
146+
<div class="tags">
147+
148+
149+
<p class="tag_title">See Also:</p>
150+
<ul class="see">
151+
152+
<li><a href="http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/atomic/AtomicReference.html" target="_parent" title="http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/atomic/AtomicReference.html">http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/atomic/AtomicReference.html</a></li>
153+
154+
<li><a href="http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/atomic/package-summary.html" target="_parent" title="http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/atomic/package-summary.html">http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/atomic/package-summary.html</a></li>
155+
156+
</ul>
157+
158+
</div>
159+
<h2>Constant Summary</h2>
160+
161+
<dl class="constants">
162+
163+
<dt id="ConcurrentUpdateError-constant" class="">ConcurrentUpdateError =
164+
165+
</dt>
166+
<dd><pre class="code"><span class='const'>Class</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='const'>Concurrent</span><span class='op'>::</span><span class='const'>ConcurrentUpdateError</span><span class='rparen'>)</span></pre></dd>
167+
168+
</dl>
169+
170+
171+
172+
173+
174+
175+
176+
177+
178+
<h2>
179+
Instance Method Summary
180+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
181+
</h2>
182+
183+
<ul class="summary">
184+
185+
<li class="public ">
186+
<span class="summary_signature">
187+
188+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Atomic) <strong>initialize</strong>(value) </a>
189+
190+
191+
192+
</span>
193+
194+
195+
<span class="note title constructor">constructor</span>
196+
197+
198+
199+
200+
201+
202+
203+
204+
<span class="summary_desc"><div class='inline'><p>Creates a new Atomic reference with null initial value.</p>
205+
</div></span>
206+
207+
</li>
208+
209+
210+
</ul>
211+
212+
213+
214+
215+
216+
217+
218+
219+
220+
221+
<div id="constructor_details" class="method_details_list">
222+
<h2>Constructor Details</h2>
223+
224+
<div class="method_details first">
225+
<h3 class="signature first" id="initialize-instance_method">
226+
227+
- (<tt><span class='object_link'><a href="" title="Atomic (class)">Atomic</a></span></tt>) <strong>initialize</strong>(value)
228+
229+
230+
231+
232+
233+
</h3><div class="docstring">
234+
<div class="discussion">
235+
<p>Creates a new Atomic reference with null initial value.</p>
236+
237+
238+
</div>
239+
</div>
240+
<div class="tags">
241+
<p class="tag_title">Parameters:</p>
242+
<ul class="param">
243+
244+
<li>
245+
246+
<span class='name'>value</span>
247+
248+
249+
<span class='type'>(<tt>Object</tt>)</span>
250+
251+
252+
253+
&mdash;
254+
<div class='inline'><p>the initial value</p>
255+
</div>
256+
257+
</li>
258+
259+
</ul>
260+
261+
262+
</div><table class="source_code">
263+
<tr>
264+
<td>
265+
<pre class="lines">
266+
267+
268+
93
269+
94
270+
95
271+
96</pre>
272+
</td>
273+
<td>
274+
<pre class="code"><span class="info file"># File 'lib/concurrent/atomic.rb', line 93</span>
275+
276+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
277+
<span class='id identifier rubyid_warn'>warn</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>[DEPRECATED] Please use Concurrent::Atomic instead.</span><span class='tstring_end'>&quot;</span></span>
278+
<span class='kw'>super</span>
279+
<span class='kw'>end</span></pre>
280+
</td>
281+
</tr>
282+
</table>
283+
</div>
284+
285+
</div>
286+
287+
288+
</div>
289+
290+
<div id="footer">
291+
Generated on Wed Jul 30 19:36:27 2014 by
292+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
293+
0.8.7.4 (ruby-2.1.2).
294+
</div>
295+
296+
<script>
297+
// (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
298+
// (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
299+
// m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
300+
// })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
301+
//
302+
// ga('create', 'UA-4005004-8', 'pitr.ch');
303+
// ga('send', 'pageview');
304+
</script>
305+
306+
</body>
307+
</html>

0 commit comments

Comments
 (0)