Taxonomy Categories:
Member Functions:
Interface Category:
API.
Inherits From:
None.
Inherited By:
None.
Purpose:
During the lifetime of this object, the task's global ID address space is deterministic. Use this object to write deterministic tests. Do not use this object in regular programs because it affects the whole task, not just your own thread's usage of global ID.
Instantiation:
Allocate on the heap or the stack.
Deriving Classes:
None.
Concurrency:
Not multithread safe.
Resource Use:
No special requirements.
TDeterministicGlobalIDSpaceEntry (unsigned long seed)
Interface Category:
API.
Purpose:
Creates a new TDeterministicGlobalIDSpaceEntry, during whose lifetime the task's global ID address space is deterministic. Use this object to write tests. Do not use this object in regular programs because it affects the whole task, not just you own thread's usage of global ID.
Calling Context:
Call this function directly.
Parameters:
- unsigned long seed -Chooses a specific deterministic global ID address space. If you use the same seed in two tasks, or in two runs of the same program, you will get the same repeatable sequence of global IDs. If you use a different seed, you will get a different repeatable sequence. This means you can set up several tasks with several different seeds, and have them all generate repeatable, nonconflicting sequences of global ID.
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
~ TDeterministicGlobalIDSpaceEntry ()
Interface Category:
API.
Purpose:
Destructor.
Calling Context:
Called to destroy an object.
Parameters:
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.