# Functions
Exclusive attempts to obtain an exclusive lock on the open file descriptor.
IsResourceUnavailable is used on the errors returned by TryExclusive and TryShare to determine if the error means the lock could not be obtained.
Release will release the currently held exclusive or shared lock on the given open file descriptor.
Share attempts to obtain a shared or read-only lock on the given open file descriptor.
TryExclusive is the non-blocking form of Exclusive and will return an error if the lock could not be obtained immediately.
TryShare is the non-blocking form of Share and will return an error if the lock could not be obtained immediately.