Jump to content

SomSetExpectedIds: Difference between revisions

From EDM2
Created page with "This function tells SOM how many unique SOM IDs a client program expects to use. ==Syntax== <PRE> unsigned long numIds; somSetExpectedIds(numIds); </PRE> ==Parameters==..."
 
Ak120 (talk | contribs)
mNo edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{DISPLAYTITLE:somSetExpectedIds}}
This function tells SOM how many unique SOM IDs a client program expects to use.
This function tells SOM how many unique SOM IDs a client program expects to use.


==Syntax==
==Syntax==
<PRE>
unsigned long    numIds;
unsigned long    numIds;
 
somSetExpectedIds(numIds);
somSetExpectedIds(numIds);
</PRE>


==Parameters==
==Parameters==
; numIds (unsigned long) : The number of SOM IDs the client program expects to use.  
;numIds (unsigned long): The number of SOM IDs the client program expects to use.


==Return Code==
==Return Code==
Line 18: Line 16:


==Example Code==
==Example Code==
<PRE>
#include <som.h>
#include <som.h>
somSetExpectedIds(1000);
somSetExpectedIds(1000);
</PRE>


==Related==
==Related==
===Functions===
;Functions
* [[somCheckId]]
* [[somCheckId]]
* [[somRegisterId]]
* [[somRegisterId]]
* [[somIdFromString]]
* [[somIdFromString]]
* [[somStringFromId]]  
* [[somStringFromId]]
* [[somCompareIds]]
* [[somCompareIds]]
* [[somTotalRegIds]]
* [[somTotalRegIds]]
* [[somUniqueKey]]
* [[somUniqueKey]]
* [[somBeginPersistentIds]]  
* [[somBeginPersistentIds]]
* [[somEndPersistentIds]]  
* [[somEndPersistentIds]]  


[[Category:SOM Kernel]]
[[Category:SOM function]]

Latest revision as of 05:10, 6 May 2020

This function tells SOM how many unique SOM IDs a client program expects to use.

Syntax

unsigned long    numIds;

somSetExpectedIds(numIds);

Parameters

numIds (unsigned long)
The number of SOM IDs the client program expects to use.

Return Code

Remarks

This function informs the SOM run-time environment how many unique SOM IDs a client program expects to use during its execution. This has the potential of slightly improving the program's space and time efficiency, if the value specified is accurate. This function, if used, must be called prior to any explicit or implicit invocation of the somEnvironmentNew function to have any effect.

Example Code

#include <som.h>
somSetExpectedIds(1000);

Related

Functions