lock_point

lock_point --  locks or unlocks points.

Syntax

lock_point (symbol, locked)

		

Arguments

symbol

A point name, as a symbol.

locked

t to set a lock, nil to release a lock.

Returns

t if the function is successful, otherwise nil.

Description

This function locks or unlocks a point in the Cascade DataHub. The current security level must be greater than or equal to the security level on the point.

Example

    Gamma> init_ipc("locker","lq");
    t
    Gamma> write_point(#a,5);
    t
    Gamma> lock_point(#a,t);
    t
    Gamma> write_point(#a,300);
    nil
    Gamma> lock_point(#a,nil);
    t
    Gamma> write_point(#a,300);
    t
    Gamma> 
    		

See Also

set_security, point_locked

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.