unsigned long PICMLX_DeviceLock (long session, unsigned long timeout);
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.
Input | ||
Name | Type | Description |
session | long |
Handle of current session. |
timeout | unsigned long |
Timeout for DeviceLock operation. |
Name | Type | Description |
return | unsigned long |
Zero for success, or no-zero error code. |
Utility
Client Bridge for LXI - Communication
Alphabetical Function Index
Hierarchical Function Index