ar_set_multithread_protect

short ar_set_multithread_protect (short board, short state);

Purpose

This function controls conditional execution of Semaphore/Mutex protection around most device accesses in the API.  Thread protection is required for any multi-threaded application, including basic multiple-path LabVIEW applications.  Although thread protection increases API overhead, the application throughput decrease should be negligible.

Parameters

Input

Name

Type

Description

board

short

(input) Device Number for the board to initiate thread protection, (valid range is 0-9).

state

short

(input) Assigns the thread protection state for the API around most device accesses in the API, as follows:
AR_ON  (7) enables thread protection
AR_OFF (8) disables thread protection                         

Return Value

Name

Type

Description

status

short

status of the function call, with valid values of:
ARS_NORMAL                  Success.
ARS_INVBOARD              The board parameter value was invalid.

ARS_INVARG                  An invalid state parameter value was supplied.

References

Utility Functions
Alphabetical Function Index
Hierarchical Function Index

CEI-x30 API Description