npub1hu…hhr7m on Nostr: Going crazy trying to solve a race condition on my go program. I am using a Mutex to ...
Going crazy trying to solve a race condition on my go program.
I am using a Mutex to try and guarantee that no two go routines are writing and reading from the same struct, but somehow the race detector keeps saying I still have a race condition. I probably am not using the mutex right
Published at
2023-12-12 13:47:13Event JSON
{
"id": "2717261ad9099825dfaf6e1d6da3fc6b91f08e3a559b6e0fc53655d1986134f7",
"pubkey": "bf1957ed6b9c28a6ed19f6d4f3b146eeadaee1bbc9d03767b8624f0c09b2d0c5",
"created_at": 1702388833,
"kind": 1,
"tags": [
[
"proxy",
"https://emacs.ch/users/djrmarques/statuses/111567754570732454",
"activitypub"
]
],
"content": "Going crazy trying to solve a race condition on my go program. \n\nI am using a Mutex to try and guarantee that no two go routines are writing and reading from the same struct, but somehow the race detector keeps saying I still have a race condition. I probably am not using the mutex right",
"sig": "b9f3e10fea454f9fdac6460965cc6ee93ad052796aed9a3a291ecc6d08dc551e5856820b5fe79080cbd73b014346597d422a388dd0f578ebb9bb1dafc6da44d0"
}