private static extern RCODE xflaim_Db_getLockUsers( IntPtr pDb, LockInfoClientCallback fnLockInfoClient);
//----------------------------------------------------------------------------- // getLockUsers //----------------------------------------------------------------------------- /// <summary> /// Returns an array representing all of the threads that are either /// holding the database lock (this is always the zeroeth entry in the array) /// as well as threads waiting to obtain the database lock (entries /// 1 through N). /// </summary> /// <returns>Array of database lock holder and waiters.</returns> public LockUser[] getLockUsers() { RCODE rc; LockInfoClientDelegate lockInfoClientDelegate = new LockInfoClientDelegate(); LockInfoClientCallback fnLockInfoClient = new LockInfoClientCallback( lockInfoClientDelegate.funcLockInfoClient); if ((rc = xflaim_Db_getLockUsers( m_pDb, fnLockInfoClient)) != 0) { throw new XFlaimException( rc); } return( lockInfoClientDelegate.getLockUsers()); }