AsyncTimeout$Watchdog.smali
2.1 KB
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
.class final Lcom/brplug/okio/AsyncTimeout$Watchdog;
.super Ljava/lang/Thread;
.source "AsyncTimeout.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/brplug/okio/AsyncTimeout;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1a
name = "Watchdog"
.end annotation
# direct methods
.method constructor <init>()V
.locals 1
const-string v0, "Okio Watchdog"
.line 304
invoke-direct {p0, v0}, Ljava/lang/Thread;-><init>(Ljava/lang/String;)V
const/4 v0, 0x1
.line 305
invoke-virtual {p0, v0}, Lcom/brplug/okio/AsyncTimeout$Watchdog;->setDaemon(Z)V
return-void
.end method
# virtual methods
.method public run()V
.locals 3
.line 312
:catch_0
:goto_0
:try_start_0
const-class v0, Lcom/brplug/okio/AsyncTimeout;
monitor-enter v0
:try_end_0
.catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0
.line 313
:try_start_1
invoke-static {}, Lcom/brplug/okio/AsyncTimeout;->awaitTimeout()Lcom/brplug/okio/AsyncTimeout;
move-result-object v1
if-nez v1, :cond_0
.line 316
monitor-exit v0
goto :goto_0
.line 320
:cond_0
sget-object v2, Lcom/brplug/okio/AsyncTimeout;->head:Lcom/brplug/okio/AsyncTimeout;
if-ne v1, v2, :cond_1
const/4 v1, 0x0
.line 321
sput-object v1, Lcom/brplug/okio/AsyncTimeout;->head:Lcom/brplug/okio/AsyncTimeout;
.line 322
monitor-exit v0
return-void
.line 324
:cond_1
monitor-exit v0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
.line 327
:try_start_2
invoke-virtual {v1}, Lcom/brplug/okio/AsyncTimeout;->timedOut()V
:try_end_2
.catch Ljava/lang/InterruptedException; {:try_start_2 .. :try_end_2} :catch_0
goto :goto_0
:catchall_0
move-exception v1
.line 324
:try_start_3
monitor-exit v0
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_0
:try_start_4
throw v1
:try_end_4
.catch Ljava/lang/InterruptedException; {:try_start_4 .. :try_end_4} :catch_0
.end method