Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lock(syncLock) {
- // prepare request from (synchronized) state
- req.Begin{...}
- }
- lock(syncLock) {
- // ...read values from request...
- // ...update local state...
- }
- private readonly object syncLock = new object();
Add Comment
Please, Sign In to add comment