Commit 60768e6
feat: implement binder read loop and BC_REPLY for server-side transactions
Add receiver registry (RegisterReceiver/UnregisterReceiver) on the
Driver struct, a background read loop goroutine that processes incoming
BR_TRANSACTION events and dispatches them to registered
TransactionReceiver handlers, and a Reply method that sends BC_REPLY
back to the transaction originator.
The read loop also handles BR_INCREFS/BR_ACQUIRE acknowledgments
and graceful shutdown via context cancellation.1 parent ff02172 commit 60768e6
2 files changed
Lines changed: 440 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
38 | 46 | | |
39 | 47 | | |
40 | 48 | | |
| |||
110 | 118 | | |
111 | 119 | | |
112 | 120 | | |
| 121 | + | |
| 122 | + | |
113 | 123 | | |
114 | 124 | | |
115 | 125 | | |
| |||
0 commit comments