Create the LockFile object and acquire a read or write lock when permanent locking is in effect. It throws an exception when acquiring the lock failed.
Acquire a read or write lock (when needed).
Nattempts==0 indicates that it has to wait until the lock is acquired.
Nattempts>0 indicates that it gives up acquiring the lock when
nattempts have been done (with 1 second intervals).
It throws an exception when acquire failed while it had to wait.
It returns a false status when acquiring the lock failed
while it does not have to wait.
When a lock is successfully acquired, the number of rows
(see function nrrow() below) is reset as a result of
synchronizing the access to the table.
Get the current number of rows in this object.
Release the lock and synchronize the table access. When autolocking is in effect, the lock is only released when the inspection-interval (see class TableLockData) has expired. It does nothing when permanent locking is used. It throws an exception when the release failed.
Check if the table has a read or write lock, thus if the table can be read or written safely.
Assignment is forbidden.
The callback function when releasing a lock.
The member function executing the callback functionality.