chenzhiguo on Nostr: ...
不对,不能避免singleton2被多次赋值,因为多线程情况下一次null判断是不够的。
Published at
2023-02-08 10:44:14Event JSON
{
"id": "1e5a537a384cfeadfb1eed0e43b652fbc120c785e22656b88973dbfcdb732e88",
"pubkey": "aae9cfdb3113db442c1ad8d4c670a28091e5267748e71d2c1e189e423dbea1bf",
"created_at": 1675853054,
"kind": 1,
"tags": [
[
"e",
"02384d7b2cb74c728c4ee3cda470f1163b6e1feb37e9721cd42b5beb4b575c7e",
""
],
[
"e",
"42329cf4b37dddb23a641ffb4aec9a9792c8183c635659344c43e2d84c8f6cf8"
],
[
"p",
"5c10ed0678805156d39ef1ef6d46110fe1e7e590ae04986ccf48ba1299cb53e2"
]
],
"content": "不对,不能避免singleton2被多次赋值,因为多线程情况下一次null判断是不够的。",
"sig": "d694a436d7bc29051a630e33eccbd3cd0931c9dfe6475ed87ad2b745a7c452d6b43de34e7c9159ca8dacf3f2aa1e2d0f00c47a50191634753a43b6300d9bc508"
}