• Post Reply Bookmark Topic Watch Topic
  • New Topic

db lock

 
joey phillip
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I will really appreciate if some one can explain how to implement db lock (-1 param in lock).
joey
 
Dilip kumar
Ranch Hand
Posts: 360
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think we need to lock all records in db.
if (record == -1) {
  for (int i = 1; i <= recordCount; i++){
    lock(i);
  }
}
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!