Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do you lock a record fast?
Message
From
28/02/2003 02:28:33
Walter Meester
HoogkarspelNetherlands
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00758830
Message ID:
00759273
Views:
33
Jim,

Exactly the way I do it...
What do you mean with "I used to use ....". How do you handle it nowerdays ?

Walter,

>Walter,
>
>I used to use the lock technique for tracking semaphore locks. I did this this way because if the station holding the semaphore lock crashes, after a shor ttime the server will release the resources that station had locked, therefore if in attempting to get a semaphore I found one that someone else had gotten I could try RLock() and if I failed then the existing semaphore is valid, if I succeeded to get a lock then the semapghore that exists is bogus (maybe a crash or a system shutdown) so I can allow the new process to have a semaphore.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform