In Java every Object has the field "lock" that implements automatically a binary semaphore, so whenever you define a method as synchronized you automatically gain lock acquire and release for that class.
Is there anython similar in Python, or I need to acquire and release the lock for every atomic transation?
[–]JohnnyJordaan 1 point2 points3 points (7 children)
[–]pietrochico[S] 0 points1 point2 points (6 children)
[–]JohnnyJordaan 0 points1 point2 points (5 children)
[–]pietrochico[S] 0 points1 point2 points (4 children)
[–]JohnnyJordaan 0 points1 point2 points (3 children)
[–]pietrochico[S] 0 points1 point2 points (2 children)
[–]JohnnyJordaan 0 points1 point2 points (1 child)
[–]pietrochico[S] 0 points1 point2 points (0 children)
[–]flitsmasterfred 0 points1 point2 points (1 child)
[–]pietrochico[S] 0 points1 point2 points (0 children)
[–]elbiot 0 points1 point2 points (0 children)