PICMLX_DeviceLock

unsigned long PICMLX_DeviceLock (long session, unsigned long timeout);

Purpose

Locks the LXI device so that no other client can open card(s). Clients which sooner opened card(s) or client with access for read can still communicate with LXI device or client with lock can do with the LXI device. Others have to wait until client with lock calls unlock function. Lock function tries to get the lock on LXI device. All calling process is blocked and wait on lock by timeout.

Parameters

Input
Name Type Description
session long

Handle of current session.

timeout unsigned long

Timeout for DeviceLock operation.

Return Value

Name Type Description
return unsigned long

Zero for success, or no-zero error code.

References

Utility
Client Bridge for LXI - Communication
Alphabetical Function Index
Hierarchical Function Index