Changes between Version 16 and Version 17 of FAQ/LockManager


Ignore:
Timestamp:
05/26/11 04:21:57 (3 years ago)
Author:
digimer
Comment:

Changed the CSV reference and URL to point to DLM's git.

Legend:

Unmodified
Added
Removed
Modified
  • FAQ/LockManager

    v16 v17  
    6161 
    6262==== Can I hand-craft my own cluster application that uses DLM locking? ==== #dlm_handcraft 
    63 Absolutely. Check out the source tree from CVS or download the source files from sources.redhat.com. There's documentation in dlm/doc/ and also several example programs (several of which might do exactly what you are looking for) in dlm/tests/usertest/. Also have a look at the PDf file "A programmers guide to the DLM" linked on the HomePage of this wiki, which contains lots of detail on how locking works and how you can use it, as well as an API reference. man pages for the DLM API calls are also shipped with the package. 
     63Absolutely. Download the source files from [http://git.fedorahosted.org/git/?p=dlm.git GIT]. There's documentation in dlm/doc/ and also several example programs (several of which might do exactly what you are looking for) in dlm/tests/usertest/. Also have a look at the PDf file "A programmers guide to the DLM" linked on the HomePage of this wiki, which contains lots of detail on how locking works and how you can use it, as well as an API reference. man pages for the DLM API calls are also shipped with the package. 
    6464 
    6565Testing a lock without blocking is available in the normal locking API (flag LKF_NOQUEUE). The only way of receiving notification of a lock being released is to queue another lock that is incompatible with it - so that lock will be granted when the previous one is released. That's also how you would do it on VMS.