![]() |
CNiContours()
![Base Classes](basepub.gif)
![Data Items](datapub.gif)
![Constructors](cstrpub.gif)
![Destructors](destpub.gif)
![Functions](funcpub.gif)
![Go to hierarchy chart](_chart0.gif)
![Prev page: CNiContours](left.gif)
![Next page: CNiContours](right.gif)
Public Constructor |
Declared in: NiContours.h |
Declaration
CNiContours( CWContours_CI* pCustom, CNiInterface::ThreadAccess option);
Description
Constructor that attaches to the specified CWContours_CI pointer.
Parameters
Specifies the CWContours_CI pointer to which to attach the object.
Specifies how the object can be accessed from multiple threads. The following list includes valid thread access options.
- CNiInterface::SingleThread
- CNiInterface::MultipleThreads
- CNiInterface::MultipleThreadsWithCaching
The thread access specifies the level of multithread support that the object provides. If you do not need to access the object from a thread thread other than the one that created it, specify CNiInterface::SingleThread to optimize performance.
Notes:
1. CNiInterface::SingleThread - no multithread support. You can use the object only from the thread in which you created the object or attached the interface pointer.
2. CNiInterface::MultipleThreads - full multithread support. You can use the object from any thread. You can destroy the object from any thread.
3. CNiInterface::MultipleThreadsWithCaching - full multithread support with caching. You can use the object from any thread. The object internally caches the interface pointer, when possible, to increase performance. A consequence of the caching is that you must destroy the object or detach the interface pointer in the same thread in which you constructed the object or attached the interface pointer.