Hi,
Looking through the CloudKVS tutorial and I think this might be good for a project I am working on at the minute.
I was looking through the code for the server for the CloudKVS, and come across the 'AddItem' sub in the DB module.
Just wondering what does lock.WriteLock do ?
I noticed that lock.WriteRelease is called at the end of the sub so I am guessing it locks the sub while it runs the sub or does it do something else ?
Looking through the CloudKVS tutorial and I think this might be good for a project I am working on at the minute.
I was looking through the code for the server for the CloudKVS, and come across the 'AddItem' sub in the DB module.
Just wondering what does lock.WriteLock do ?
I noticed that lock.WriteRelease is called at the end of the sub so I am guessing it locks the sub while it runs the sub or does it do something else ?