[ Previous ] [ Contents ] [ Index ] [ Next ]

ns_rwlock

Overview

Create, destroy, and manipulate read/write locks

Syntax

ns_rwlock create

ns_rwlock destroy rwlockid

ns_rwlock readlock rwlockid

ns_rwlock readunlock rwlockid

ns_rwlock writelock rwlockid

ns_rwlock writeunlock rwlockid

Description

ns_rwlock create initializes a read/write lock and returns an ID for it.

ns_rwlock destroy frees the resources associated with the specified read/write lock. The rwlockid argument is the read/write lock ID returned by ns_reate initialiustar rootroot Tcl API Reference -- ns_rwlock
[ Previous ] [ Contents ] [ Index ] [ Next ]

ns_rwlock

Overview

Create, destroy, and manipulate read/write locks

Syntax

ns_rwlock create

ns_rwlock destroy rwlockid

ns_rwlock readlock rwlockid

ns_rwlock readunlock rwlockid

ns_rwlock writelock rwlockid

ns_rwlock writeunlock rwlockid

Description

ns_rwlock create initializes a read/write lock and returns an ID for it.

ns_rwlock destroy frees the resources associated with the specified read/write lock. The rwlockid argument is the read/write lock ID returned by ns_reate initialiustar rootroot Tcl API Reference -- ns_rwlock