-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRenntrantLock.drawio
334 lines (334 loc) · 28.7 KB
/
RenntrantLock.drawio
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
<mxfile host="app.diagrams.net" modified="2022-03-23T06:46:49.105Z" agent="5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.83 Safari/537.36" etag="lqKTTQgceExNqm3drzgF" version="17.1.4" type="github">
<diagram id="GJqHmGqDRDyWfmhTE_2S" name="第 1 页">
<mxGraphModel dx="1977" dy="1232" grid="0" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="0" pageScale="1" pageWidth="827" pageHeight="1169" math="0" shadow="1">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="zObkzzUAoMXtNydKvx5d-36" value="acquire" style="shape=umlFrame;whiteSpace=wrap;html=1;labelBackgroundColor=none;" parent="1" vertex="1">
<mxGeometry x="210" y="482" width="517" height="614" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-6" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="zObkzzUAoMXtNydKvx5d-1" target="zObkzzUAoMXtNydKvx5d-4" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-1" value="RenntrantLock.lock()" style="rounded=0;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="330" y="120" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-8" value="获取成功" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="zObkzzUAoMXtNydKvx5d-4" target="zObkzzUAoMXtNydKvx5d-7" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-12" value="获取失败" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="zObkzzUAoMXtNydKvx5d-4" target="zObkzzUAoMXtNydKvx5d-11" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-4" value="<span>尝试获取锁<br>(修改state为1)</span>" style="rhombus;whiteSpace=wrap;html=1;rounded=0;" parent="1" vertex="1">
<mxGeometry x="320" y="230" width="140" height="80" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-10" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="zObkzzUAoMXtNydKvx5d-7" target="zObkzzUAoMXtNydKvx5d-9" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-7" value="<div><span>设置独占线程为当前线程</span></div>" style="whiteSpace=wrap;html=1;rounded=0;align=center;" parent="1" vertex="1">
<mxGeometry x="604" y="240" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-9" value="结束" style="whiteSpace=wrap;html=1;rounded=0;" parent="1" vertex="1">
<mxGeometry x="604" y="370" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-35" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="zObkzzUAoMXtNydKvx5d-11" target="zObkzzUAoMXtNydKvx5d-34" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-11" value="再次尝试获取锁" style="whiteSpace=wrap;html=1;rounded=0;" parent="1" vertex="1">
<mxGeometry x="330" y="387" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-14" value="<div style="text-align: justify"><span>这里获取锁是通过调用AQS的acquire()方法,acquire()会调用 tryAcquire(),而tryAcquire 则是由各个自定义同步器实现。</span></div>" style="shape=note;size=20;whiteSpace=wrap;html=1;" parent="1" vertex="1">
<mxGeometry x="53" y="370" width="251" height="88" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-121" value="获取失败" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="zObkzzUAoMXtNydKvx5d-34" target="zObkzzUAoMXtNydKvx5d-120" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-34" value="获取锁#tryAcquire()" style="rhombus;whiteSpace=wrap;html=1;rounded=0;" parent="1" vertex="1">
<mxGeometry x="330" y="518" width="120" height="96" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-37" value="结束" style="whiteSpace=wrap;html=1;rounded=0;" parent="1" vertex="1">
<mxGeometry x="572" y="536" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-38" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="zObkzzUAoMXtNydKvx5d-34" target="zObkzzUAoMXtNydKvx5d-37" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-39" value="获取成功" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="zObkzzUAoMXtNydKvx5d-38" vertex="1" connectable="0">
<mxGeometry x="-0.2" y="1" relative="1" as="geometry">
<mxPoint as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-42" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=1;entryDx=0;entryDy=0;" parent="1" source="zObkzzUAoMXtNydKvx5d-40" target="zObkzzUAoMXtNydKvx5d-37" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-43" value="获取成功" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="zObkzzUAoMXtNydKvx5d-42" vertex="1" connectable="0">
<mxGeometry x="-0.5356" relative="1" as="geometry">
<mxPoint x="-37" as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-40" value="自旋获取锁#acquireQueued()" style="rhombus;whiteSpace=wrap;html=1;rounded=0;" parent="1" vertex="1">
<mxGeometry x="320.75" y="850" width="138.5" height="80" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-44" value="自中断<br><div>&nbsp; &nbsp; &nbsp; Thread.currentThread().interrupt();</div><div><br></div>" style="whiteSpace=wrap;html=1;rounded=0;" parent="1" vertex="1">
<mxGeometry x="285.5" y="1009" width="209" height="53" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-45" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="1" source="zObkzzUAoMXtNydKvx5d-40" target="zObkzzUAoMXtNydKvx5d-44" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-46" value="获取失败" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="zObkzzUAoMXtNydKvx5d-45" vertex="1" connectable="0">
<mxGeometry x="-0.2" y="3" relative="1" as="geometry">
<mxPoint as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-122" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" parent="1" source="zObkzzUAoMXtNydKvx5d-120" target="zObkzzUAoMXtNydKvx5d-40" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-120" value="添加新节点<br>#addWaiter" style="whiteSpace=wrap;html=1;rounded=0;" parent="1" vertex="1">
<mxGeometry x="330" y="723" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="tJKFbUdxLd3i8MNqsO-P-9" value="" style="group" vertex="1" connectable="0" parent="1">
<mxGeometry x="758" y="246" width="724" height="521" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-20" value="tryAcquire" style="shape=umlFrame;whiteSpace=wrap;html=1;" parent="tJKFbUdxLd3i8MNqsO-P-9" vertex="1">
<mxGeometry width="724" height="521" as="geometry" />
</mxCell>
<mxCell id="tJKFbUdxLd3i8MNqsO-P-8" value="" style="group" vertex="1" connectable="0" parent="tJKFbUdxLd3i8MNqsO-P-9">
<mxGeometry x="38.5" y="46" width="647" height="438" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-21" value="通过cas修改state的值" style="rhombus;whiteSpace=wrap;html=1;rounded=0;" parent="tJKFbUdxLd3i8MNqsO-P-8" vertex="1">
<mxGeometry y="216" width="180" height="89" as="geometry" />
</mxCell>
<mxCell id="tJKFbUdxLd3i8MNqsO-P-7" value="" style="group" vertex="1" connectable="0" parent="tJKFbUdxLd3i8MNqsO-P-8">
<mxGeometry x="28" width="619" height="438" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-15" value="state等于0?" style="rhombus;whiteSpace=wrap;html=1;rounded=0;" parent="tJKFbUdxLd3i8MNqsO-P-7" vertex="1">
<mxGeometry x="12" y="66" width="100" height="80" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-17" value="独占线程为当前线程?" style="rhombus;whiteSpace=wrap;html=1;rounded=0;" parent="tJKFbUdxLd3i8MNqsO-P-7" vertex="1">
<mxGeometry x="239" y="66" width="166" height="80" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-18" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="tJKFbUdxLd3i8MNqsO-P-7" source="zObkzzUAoMXtNydKvx5d-15" target="zObkzzUAoMXtNydKvx5d-17" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-19" value="不为0" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="zObkzzUAoMXtNydKvx5d-18" vertex="1" connectable="0">
<mxGeometry x="-0.15" relative="1" as="geometry">
<mxPoint as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-23" value="<span>设置独占线程为当前线程,成功获取锁</span>" style="whiteSpace=wrap;html=1;rounded=0;" parent="tJKFbUdxLd3i8MNqsO-P-7" vertex="1">
<mxGeometry y="378" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-26" value="获取锁失败" style="whiteSpace=wrap;html=1;rounded=0;" parent="tJKFbUdxLd3i8MNqsO-P-7" vertex="1">
<mxGeometry x="262" y="230.5" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-28" value="不是" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="tJKFbUdxLd3i8MNqsO-P-7" source="zObkzzUAoMXtNydKvx5d-17" target="zObkzzUAoMXtNydKvx5d-26" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-30" value="锁定计数加1,修改state的值为锁定计数,获取锁成功" style="whiteSpace=wrap;html=1;rounded=0;" parent="tJKFbUdxLd3i8MNqsO-P-7" vertex="1">
<mxGeometry x="499" y="76" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-33" value="是" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="tJKFbUdxLd3i8MNqsO-P-7" source="zObkzzUAoMXtNydKvx5d-17" target="zObkzzUAoMXtNydKvx5d-30" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-54" value="" style="ellipse;html=1;shape=startState;labelBackgroundColor=none;" parent="tJKFbUdxLd3i8MNqsO-P-7" vertex="1">
<mxGeometry x="47" width="30" height="30" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-55" value="" style="edgeStyle=orthogonalEdgeStyle;html=1;verticalAlign=bottom;endArrow=open;endSize=8;rounded=0;" parent="tJKFbUdxLd3i8MNqsO-P-7" source="zObkzzUAoMXtNydKvx5d-54" edge="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="62" y="64" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-22" value="为0" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="tJKFbUdxLd3i8MNqsO-P-8" source="zObkzzUAoMXtNydKvx5d-15" target="zObkzzUAoMXtNydKvx5d-21" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-24" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="tJKFbUdxLd3i8MNqsO-P-8" source="zObkzzUAoMXtNydKvx5d-21" target="zObkzzUAoMXtNydKvx5d-23" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-25" value="修改成功" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="zObkzzUAoMXtNydKvx5d-24" vertex="1" connectable="0">
<mxGeometry x="0.04" relative="1" as="geometry">
<mxPoint as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-27" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="tJKFbUdxLd3i8MNqsO-P-8" source="zObkzzUAoMXtNydKvx5d-21" target="zObkzzUAoMXtNydKvx5d-26" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-29" value="修改失败" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" parent="zObkzzUAoMXtNydKvx5d-27" vertex="1" connectable="0">
<mxGeometry x="-0.1818" y="-1" relative="1" as="geometry">
<mxPoint as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="tJKFbUdxLd3i8MNqsO-P-11" value="" style="group" vertex="1" connectable="0" parent="1">
<mxGeometry x="758" y="809" width="1059" height="703" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-115" value="addWaiter" style="shape=umlFrame;whiteSpace=wrap;html=1;labelBackgroundColor=none;width=74;height=38;container=0;" parent="tJKFbUdxLd3i8MNqsO-P-11" vertex="1">
<mxGeometry width="1059" height="703" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-114" value="enq" style="shape=umlFrame;whiteSpace=wrap;html=1;labelBackgroundColor=none;container=0;" parent="tJKFbUdxLd3i8MNqsO-P-11" vertex="1">
<mxGeometry x="437.25" y="61" width="593.75" height="577" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-58" value="" style="ellipse;html=1;shape=startState;labelBackgroundColor=none;container=0;" parent="tJKFbUdxLd3i8MNqsO-P-11" vertex="1">
<mxGeometry x="80.5" y="38" width="30" height="30" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-59" value="" style="edgeStyle=orthogonalEdgeStyle;html=1;verticalAlign=bottom;endArrow=open;endSize=8;rounded=0;" parent="tJKFbUdxLd3i8MNqsO-P-11" source="zObkzzUAoMXtNydKvx5d-58" edge="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="95.5" y="119" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-60" value="根据当前线程<br>创建一个新节点" style="html=1;labelBackgroundColor=none;container=0;" parent="tJKFbUdxLd3i8MNqsO-P-11" vertex="1">
<mxGeometry x="40.5" y="120" width="110" height="50" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-63" value="尾节点不为空" style="rhombus;whiteSpace=wrap;html=1;labelBackgroundColor=none;container=0;" parent="tJKFbUdxLd3i8MNqsO-P-11" vertex="1">
<mxGeometry x="29" y="211" width="133" height="81" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-64" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="tJKFbUdxLd3i8MNqsO-P-11" source="zObkzzUAoMXtNydKvx5d-60" target="zObkzzUAoMXtNydKvx5d-63" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-65" value="将新节点插入队列<br>#enq" style="whiteSpace=wrap;html=1;labelBackgroundColor=none;container=0;" parent="tJKFbUdxLd3i8MNqsO-P-11" vertex="1">
<mxGeometry x="35.5" y="628" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-66" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="tJKFbUdxLd3i8MNqsO-P-11" source="zObkzzUAoMXtNydKvx5d-63" target="zObkzzUAoMXtNydKvx5d-65" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-77" value="为空" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];container=0;" parent="zObkzzUAoMXtNydKvx5d-66" vertex="1" connectable="0">
<mxGeometry x="-0.6422" relative="1" as="geometry">
<mxPoint as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-68" value="新节点的前节点<br>指向尾节点" style="whiteSpace=wrap;html=1;labelBackgroundColor=none;container=0;" parent="tJKFbUdxLd3i8MNqsO-P-11" vertex="1">
<mxGeometry x="248.5" y="221.5" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-69" value="不为空" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="tJKFbUdxLd3i8MNqsO-P-11" source="zObkzzUAoMXtNydKvx5d-63" target="zObkzzUAoMXtNydKvx5d-68" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-71" value="将tail指向新节点" style="rhombus;whiteSpace=wrap;html=1;labelBackgroundColor=none;container=0;" parent="tJKFbUdxLd3i8MNqsO-P-11" vertex="1">
<mxGeometry x="205" y="333" width="207" height="92" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-72" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="tJKFbUdxLd3i8MNqsO-P-11" source="zObkzzUAoMXtNydKvx5d-68" target="zObkzzUAoMXtNydKvx5d-71" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-75" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="tJKFbUdxLd3i8MNqsO-P-11" source="zObkzzUAoMXtNydKvx5d-73" target="zObkzzUAoMXtNydKvx5d-65" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-73" value="将原尾节点的下一个节点指向新节点" style="whiteSpace=wrap;html=1;labelBackgroundColor=none;container=0;" parent="tJKFbUdxLd3i8MNqsO-P-11" vertex="1">
<mxGeometry x="248.5" y="500" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-74" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="tJKFbUdxLd3i8MNqsO-P-11" source="zObkzzUAoMXtNydKvx5d-71" target="zObkzzUAoMXtNydKvx5d-73" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-92" value="赋值成功" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];container=0;" parent="zObkzzUAoMXtNydKvx5d-74" vertex="1" connectable="0">
<mxGeometry x="-0.2632" y="-1" relative="1" as="geometry">
<mxPoint as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-81" value="" style="ellipse;html=1;shape=startState;labelBackgroundColor=none;container=0;" parent="tJKFbUdxLd3i8MNqsO-P-11" vertex="1">
<mxGeometry x="636" y="149" width="30" height="30" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-82" value="" style="edgeStyle=orthogonalEdgeStyle;html=1;verticalAlign=bottom;endArrow=open;endSize=8;rounded=0;" parent="tJKFbUdxLd3i8MNqsO-P-11" source="zObkzzUAoMXtNydKvx5d-81" edge="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="651" y="214" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-86" value="尾节点为空" style="rhombus;whiteSpace=wrap;html=1;labelBackgroundColor=none;container=0;" parent="tJKFbUdxLd3i8MNqsO-P-11" vertex="1">
<mxGeometry x="601.5" y="215" width="99" height="73" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-100" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.001;entryY=0.496;entryDx=0;entryDy=0;entryPerimeter=0;" parent="tJKFbUdxLd3i8MNqsO-P-11" source="zObkzzUAoMXtNydKvx5d-88" target="zObkzzUAoMXtNydKvx5d-86" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="470" y="409" />
<mxPoint x="470" y="251" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-102" value="初始化失败" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];container=0;" parent="zObkzzUAoMXtNydKvx5d-100" vertex="1" connectable="0">
<mxGeometry x="-0.703" y="2" relative="1" as="geometry">
<mxPoint x="8" y="-2" as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-88" value="初始化头节点<br>(new一个虚拟节点)" style="rhombus;whiteSpace=wrap;html=1;labelBackgroundColor=none;container=0;" parent="tJKFbUdxLd3i8MNqsO-P-11" vertex="1">
<mxGeometry x="564.75" y="362" width="172.5" height="95" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-89" value="为空" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="tJKFbUdxLd3i8MNqsO-P-11" source="zObkzzUAoMXtNydKvx5d-86" target="zObkzzUAoMXtNydKvx5d-88" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-99" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0.007;entryY=0.492;entryDx=0;entryDy=0;entryPerimeter=0;" parent="tJKFbUdxLd3i8MNqsO-P-11" source="zObkzzUAoMXtNydKvx5d-96" target="zObkzzUAoMXtNydKvx5d-86" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="470" y="585" />
<mxPoint x="470" y="251" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-96" value="头节点和尾节点指向虚拟节点" style="whiteSpace=wrap;html=1;labelBackgroundColor=none;container=0;" parent="tJKFbUdxLd3i8MNqsO-P-11" vertex="1">
<mxGeometry x="591" y="554.5" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-97" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="tJKFbUdxLd3i8MNqsO-P-11" source="zObkzzUAoMXtNydKvx5d-88" target="zObkzzUAoMXtNydKvx5d-96" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-98" value="初始化成功" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];container=0;" parent="zObkzzUAoMXtNydKvx5d-97" vertex="1" connectable="0">
<mxGeometry x="-0.2831" relative="1" as="geometry">
<mxPoint as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-103" value="新节点的前节点<br>指向尾节点" style="whiteSpace=wrap;html=1;labelBackgroundColor=none;container=0;" parent="tJKFbUdxLd3i8MNqsO-P-11" vertex="1">
<mxGeometry x="809" y="221.5" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-104" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="tJKFbUdxLd3i8MNqsO-P-11" source="zObkzzUAoMXtNydKvx5d-86" target="zObkzzUAoMXtNydKvx5d-103" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-105" value="不为空" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];container=0;" parent="zObkzzUAoMXtNydKvx5d-104" vertex="1" connectable="0">
<mxGeometry x="-0.201" relative="1" as="geometry">
<mxPoint as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-111" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;entryX=0;entryY=0.494;entryDx=0;entryDy=0;entryPerimeter=0;" parent="tJKFbUdxLd3i8MNqsO-P-11" source="zObkzzUAoMXtNydKvx5d-106" target="zObkzzUAoMXtNydKvx5d-86" edge="1">
<mxGeometry relative="1" as="geometry">
<Array as="points">
<mxPoint x="1008" y="352" />
<mxPoint x="1008" y="118" />
<mxPoint x="532" y="118" />
<mxPoint x="532" y="251" />
</Array>
</mxGeometry>
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-113" value="修改失败" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];container=0;" parent="zObkzzUAoMXtNydKvx5d-111" vertex="1" connectable="0">
<mxGeometry x="-0.9299" y="-1" relative="1" as="geometry">
<mxPoint as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-106" value="将tail指向新节点" style="rhombus;whiteSpace=wrap;html=1;labelBackgroundColor=none;container=0;" parent="tJKFbUdxLd3i8MNqsO-P-11" vertex="1">
<mxGeometry x="819" y="318" width="100" height="68" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-107" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="tJKFbUdxLd3i8MNqsO-P-11" source="zObkzzUAoMXtNydKvx5d-103" target="zObkzzUAoMXtNydKvx5d-106" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-108" value="原来尾节点的下一个节点指向新节点,返回原来尾节点" style="whiteSpace=wrap;html=1;labelBackgroundColor=none;container=0;" parent="tJKFbUdxLd3i8MNqsO-P-11" vertex="1">
<mxGeometry x="809" y="462" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-109" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="tJKFbUdxLd3i8MNqsO-P-11" source="zObkzzUAoMXtNydKvx5d-106" target="zObkzzUAoMXtNydKvx5d-108" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-110" value="修改成功" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];container=0;" parent="zObkzzUAoMXtNydKvx5d-109" vertex="1" connectable="0">
<mxGeometry x="-0.0842" y="2" relative="1" as="geometry">
<mxPoint as="offset" />
</mxGeometry>
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-117" value="返回新节点" style="whiteSpace=wrap;html=1;labelBackgroundColor=none;container=0;" parent="tJKFbUdxLd3i8MNqsO-P-11" vertex="1">
<mxGeometry x="235.5" y="628" width="120" height="60" as="geometry" />
</mxCell>
<mxCell id="zObkzzUAoMXtNydKvx5d-118" value="" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;" parent="tJKFbUdxLd3i8MNqsO-P-11" source="zObkzzUAoMXtNydKvx5d-65" target="zObkzzUAoMXtNydKvx5d-117" edge="1">
<mxGeometry relative="1" as="geometry" />
</mxCell>
<mxCell id="tJKFbUdxLd3i8MNqsO-P-18" value="" style="ellipse;html=1;shape=startState;fillColor=#000000;strokeColor=#ff0000;rounded=0;sketch=0;" vertex="1" parent="1">
<mxGeometry x="375" y="1151" width="30" height="30" as="geometry" />
</mxCell>
<mxCell id="tJKFbUdxLd3i8MNqsO-P-19" value="" style="edgeStyle=orthogonalEdgeStyle;html=1;verticalAlign=bottom;endArrow=open;endSize=8;strokeColor=#ff0000;rounded=1;sketch=0;curved=0;" edge="1" source="tJKFbUdxLd3i8MNqsO-P-18" parent="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="390" y="1241" as="targetPoint" />
</mxGeometry>
</mxCell>
<mxCell id="tJKFbUdxLd3i8MNqsO-P-20" value="Object" style="html=1;rounded=0;sketch=0;" vertex="1" parent="1">
<mxGeometry x="335" y="1241" width="110" height="50" as="geometry" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>