Chandra X-Ray Observatory
	(CXC)
Skip to the navigation links
Last modified: December 2013

URL: http://cxc.harvard.edu/chips/ahelp/lock.html
Jump to: Description · Example · Bugs · See Also


AHELP for CIAO 4.6 ChIPS v1

lock

Context: server

Synopsis

Locks a chips server so that only commands from the locking client will be processed.

Syntax

lock()

Description

ChIPS allows multiple clients to connect to a single server so that several different processes may share a single plot. Clients may lock the server to allow a series of commands to be issued without being interspersed with commands from other clients.

The locking mechanism is a blocking lock: other clients which issue commands while the server is locked will hang until the lock is released. When the lock is released, the commands of the blocked clients are executed. If the client terminates (i.e. the user quits the application or shell), the lock is automatically released.

Example

chips> lock()
chips> limits(X_AXIS, 100, 150)
chips> unlock()

A lock command is issued by the server to prevent other clients from interrupting the sequence of commands issued by this client. The unlock command is then called to release the server for access by other clients.

Bugs

See the bugs pages on the ChIPS website for an up-to-date listing of known bugs.

See Also

server
check_server_exists, connect, create_server, disconnect, get_server_cwd, get_server_id, list_servers, unlock

Last modified: December 2013
Smithsonian Institute Smithsonian Institute

The Chandra X-Ray Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory. 60 Garden Street, Cambridge, MA 02138 USA.   Email:   cxcweb@head.cfa.harvard.edu Smithsonian Institution, Copyright © 1998-2014. All rights reserved.