Commit d37bdc7
committed
docs: document race condition in insert_aggregated_payload
Add thread safety documentation to insert_aggregated_payload method
to clarify the non-atomic read-modify-write pattern.
This method reads existing payloads, appends a new one, and writes back.
Concurrent calls could result in lost updates. The method must be called
from a single thread. In ethlambda's architecture, the BlockChain actor
(GenServer pattern) provides single-threaded access.1 parent c62b9fe commit d37bdc7
1 file changed
+16
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
785 | 785 | | |
786 | 786 | | |
787 | 787 | | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
788 | 803 | | |
789 | 804 | | |
790 | 805 | | |
| |||
795 | 810 | | |
796 | 811 | | |
797 | 812 | | |
798 | | - | |
| 813 | + | |
799 | 814 | | |
800 | 815 | | |
801 | 816 | | |
| |||
0 commit comments