Commit 7e7f4f5
refactor: move IN_FACADE re-entrancy guard from mod.rs to write.rs
The IN_FACADE thread-local and its accessors (in_facade/set_in_facade)
are specific to the write hook's re-entrancy prevention. Moved from the
generic impl_facade! macro in mod.rs to write.rs where they belong.
The generic impl_facade! no longer has IN_FACADE logic — it keeps the
state-transition-before-logging reorder for the preemption fix, while
write.rs handles its own re-entrancy guard privately.
Agent-Logs-Url: https://github.com/acl-dev/open-coroutine/sessions/481d5b61-d175-4f75-ade3-a6f0b5511a71
Co-authored-by: loongs-zhang <38336731+loongs-zhang@users.noreply.github.com>1 parent c49454d commit 7e7f4f5
2 files changed
Lines changed: 24 additions & 31 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 5 | | |
25 | 6 | | |
26 | 7 | | |
| |||
116 | 97 | | |
117 | 98 | | |
118 | 99 | | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | 100 | | |
123 | 101 | | |
124 | 102 | | |
| |||
129 | 107 | | |
130 | 108 | | |
131 | 109 | | |
132 | | - | |
133 | 110 | | |
134 | 111 | | |
135 | 112 | | |
| |||
139 | 116 | | |
140 | 117 | | |
141 | 118 | | |
142 | | - | |
143 | 119 | | |
144 | | - | |
145 | 120 | | |
146 | 121 | | |
147 | 122 | | |
148 | 123 | | |
149 | 124 | | |
150 | 125 | | |
151 | | - | |
152 | 126 | | |
153 | 127 | | |
154 | 128 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
4 | 23 | | |
5 | 24 | | |
6 | 25 | | |
| |||
43 | 62 | | |
44 | 63 | | |
45 | 64 | | |
46 | | - | |
| 65 | + | |
47 | 66 | | |
48 | 67 | | |
49 | 68 | | |
50 | 69 | | |
51 | | - | |
| 70 | + | |
52 | 71 | | |
53 | 72 | | |
54 | 73 | | |
| |||
58 | 77 | | |
59 | 78 | | |
60 | 79 | | |
61 | | - | |
| 80 | + | |
62 | 81 | | |
63 | | - | |
| 82 | + | |
64 | 83 | | |
65 | 84 | | |
66 | 85 | | |
67 | 86 | | |
68 | 87 | | |
69 | 88 | | |
70 | | - | |
| 89 | + | |
71 | 90 | | |
72 | 91 | | |
73 | 92 | | |
| |||
0 commit comments