lock/unlock
Layer1
Release Notes
attachGoldenThread
cast
copy
cutGoldenThread
cwu
delete
dpml
dump
entrypoint
exists
expire
fls
guid
hotRestart
HTTPCookie
HTTPRedirect
isUnix
locationToXPath
lock/unlock
log
loglevel
luceneIndex
luceneSearch
mapper
mapper-export
md5
mls
netkernel:*
new
Orchextra
org.ten60.util.aspell
org.ten60.util.image.SVG2PNG
org.ten60.util.image.Text2PNG
org.ten60.util.image.xchart
plainTextToXHTML
regex
relativizeURI
requestWithArgs
resolveURI
serialize
sleep
sqlBatch
sqlBooleanQuery
SQLEncodeElement
SQLEscapeXML
sqlQuery
sqlUpdate
stm
stopWatch
StringToCanonicalString
throw
toRelaxNG
trace
validateDTD
validateRNG
validateSchematron
validateXSD
xacml
xform
XHREFlinker
XHTMLredirect
XHTMLTidy
xinclude
xmltidy
xpatheval
xpur
xquery
xrl
xsign
xslfo-fop
xslfo-fop
xslt
xverify
License
Change History
NetKernel History
Acknowledgements

lock/unlock

Used to obtain/release a transaction lock on a resource.

Module

urn:org:ten60:netkernel:ext:layer1

Definition

Format

<instr>
  <type>lock</type>
  <operand>file:/inventory.xml</operand>
</instr>

Syntax

ElementRulesDescription
typeMandatory lock or unlock
operandMandatory the resource to which transaction applies

The lock accessor is used to place a named resource into a transaction. When a resource is locked the current request gains an exclusive lock on the resource which stops other processes from gaining it until this transaction ends. A concurrent call to lock will block indefinately until the resource can be obtained.

lock can be used with <exception> handling blocks to create robust transactional applications.


1060® NetKernelTM Documentation
(C) 2003-2004 1060 Research Limited

Send Feedback

© 2003,2004, 1060® Research Limited
1060 registered trademark, NetKernel trademark of 1060 Research Limited