Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP critical section: uniqueness question
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01160316
Message ID:
01160432
Views:
9
Thanks Rick. VFP's SYS(2336) seems to be fine for my needs. I was just very curious regarding how VFP does it so that I wouldn't write code based on assumptions that were wrong. (Keeping in mind, of course, that just because my assumption is right doesn't mean my code will be).

>Mark,
>
>I'm pretty sure there's only one global CS structure involved. Otherwise this single function wouldn't work.
>
>CS objects can be nested but it gets tricky with lock counts revving and hte potential for deadlocks going up drastically. It's best to keep critical sections to short, short blocks.
>
>But if you really need multiple CS objects why not make an API call to the 4 CriticalSection APIs? (actually it's probably easiest to do this in C code via DLL or FLL)
>
>+++ Rick ---
Previous
Reply
Map
View

Click here to load this message in the networking platform