>>ITEM: N00060
>>DATE: May 14, 1996
>>TYPE: Information
>>TITLE: How to increase the number of semaphores
>>PRODUCT(S):
NetLib (all versions) for Clipper
NetLib (all versions) for FoxPro DOS
NetLib (all versions) for FoxPro Windows
>>PLATFORM(S):
>>SUMMARY:
How to increase the number of N_SLOCK() settings. The default is a maximum of 10
strings at a workstation, with a maximum string length of 60.
>>MORE INFORMATION:
The default values of N_SLOCK() are sufficient for most
applications. Some applications may need additional strings, or may need to increase their length.
>>RESOLUTION/FIX:
This can be done by issuing N_SLOCK(s,c) immediately before
N_READY, where "s" is the string length and "c" is the string
count.
This cannot be changed after N_READY is issued.
>>EXAMPLE(S):
In the following example, we allow up to 20 semaphore strings
of up the 60 characters each, at each workstation.
* Clipper
N_SLOCK(60,20)
N_READY()
* FoxPro:
* Since SET LIBRARY TO includes an implied N_READY
* you must use _NOREADY_ to suppress the automatic N_READY
.
_NOREADY_ = .T. && automatic N_READY() suppressed
SET LIBRARY TO NL1F25
=N_SLOCK(60,20)
=N_READY() && now issue N_READY()
RELEASE _NOREADY_
>>SEE ALSO:
>>COPYRIGHT 1997 Communication Horizons
All rights reserved worldwide.
No distribution without specific consent of publisher.
Knowledgebase
Top Home