CNiValuePair::CNiValuePair

NI Measurement Studio CNi

Class
CNiValuePair::
CNiValuePair()
Base ClassesData ItemsConstructorsDestructorsFunctionsGo to hierarchy chart    Prev page: CNiValuePairNext page: CNiValuePair    
Public Constructor Declared in:
NiValuepair.h

'Declaration' icon -- Shortcut to top of page. Declaration

CNiValuePair(
    CWValuePair_CI* pCustom,
    CNiInterface::ThreadAccess option);

'Description' icon -- Shortcut to top of page. Description

Constructor that attaches to the specified CWValuePair_CI pointer.

Shortcut to top of page. Parameters

CWValuePair_CI* pCustom

Specifies the CWValuePair_CI pointer to which to attach the object.

CNiInterface::ThreadAccess option

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.

'See Also' icon -- Shortcut to top of page. See Also