Lines Matching refs:counter

50 ** not as operational data. If you need a counter for operational                  
53 ** Counters are 32bit unsigned intergers. On overflow, a counter
56 ** A counter can be dynamically created using a two level naming
57 ** convention. A "handle" is returned when the counter is
58 ** created. The counter can subsequently be addressed by its
59 ** handle. An API is provided to get an existing counter's handle
61 ** Similarly, a counter's name can be retrieved given its handle.
63 ** The counter naming convention is a two-level hierarchy. The
70 ** counter locks a large asset, potentially causing a stall. This
80 ** When traversing the counter database with FindNext functions,
81 ** the instantaneous values of any given counter is that at the
82 ** moment of extraction. The state of the entire counter database
85 ** The counter interface may be disabled (No-Op'd) at compile
88 ** When DEBUG is not defined, the counter macros compile to
127 ** Opaque counter handle type.
141 ** DESCRIPTION: PR_DEFINE_COUNTER() is used to define a counter
163 ** FUNCTION: PR_CreateCounter() -- Create a counter
165 ** DESCRIPTION: PR_CreateCounter() creates a counter object and
173 ** qName: The QName for the counter object. The maximum length
176 ** rName: The RName for the counter object. The maximum length
179 ** descrioption: The description of the counter object. The
206 ** FUNCTION: PR_DestroyCounter() -- Destroy a counter object.
208 ** DESCRIPTION: PR_DestroyCounter() removes a counter and
209 ** unregisters its handle from the counter database.
212 ** handle: the PRCounterHandle of the counter to be destroyed.
215 ** The counter is destroyed.
236 ** counter's handle give its name.
239 ** counter's handle from the counter database, given the name
240 ** the counter was originally created with.
269 ** counter's name, given its handle.
272 ** counter's name given its handle.
305 ** counter.
307 ** DESCRIPTION: Add one to the referenced counter.
310 ** handle: The PRCounterHandle of the counter to be incremented
312 ** OUTPUTS: The counter is incrementd.
333 ** referenced counter
335 ** DESCRIPTION: Subtract one from the referenced counter.
341 ** OUTPUTS: the counter is decremented.
360 ** FUNCTION: PR_AddToCounter() -- Add a value to a counter.
362 ** DESCRIPTION: Add value to the counter referenced by handle.
365 ** handle: the PRCounterHandle of the counter to be added to.
367 ** value: the value to be added to the counter.
369 ** OUTPUTS: new value for counter.
392 ** from a counter.
395 ** Subtract a value from a counter.
398 ** handle: the PRCounterHandle of the counter to be subtracted
401 ** value: the value to be subtracted from the counter.
403 ** OUTPUTS: new value for counter
425 ** FUNCTION: PR_GetCounter() -- Retreive the value of a counter
428 ** Retreive the value of a counter.
431 ** handle: the PR_CounterHandle of the counter to be retreived
435 ** RETURNS: The value of the referenced counter
441 #define PR_GET_COUNTER(counter,handle)\
442 (counter) = PR_GetCounter((handle))
444 #define PR_GET_COUNTER(counter,handle) 0
453 ** FUNCTION: PR_SetCounter() -- Replace the content of counter
456 ** DESCRIPTION: The contents of the referenced counter are
460 ** handle: the PRCounterHandle of the counter whose contents
463 ** value: the new value of the counter.
486 ** FUNCTION: PR_FindNextCounterQname() -- Retreive the next QName counter
491 ** the counter data base, depending on the value of handle. When
502 ** RETURNS: PRCounterHandle or NULL when no more QName counter
527 ** FUNCTION: PR_FindNextCounterRname() -- Retreive the next RName counter
532 ** handle from the counter data base, depending on the
545 ** RETURNS: PRCounterHandle or NULL when no more RName counter