Ns critsec
Jump to navigation
Jump to search
Man page: http://aolserver.com/docs/tcl/ns_critsec.html
NAME
- ns_critsec - Operate on critical section objects
SYNOPSIS
- ns_critsec option ?arg arg ...?
DESCRIPTION
- This command provides a mechanism to manipulate critical section objects. The legal options (which may be abbreviated) are:
- ns_critsec create
- Initializes a new critical section object and returns a handle to it.
- ns_critsec destroy object
- Destroys the critical section object and frees any resources it was using.
- ns_critsec enter object
- Enters the critical section. The thread will block if another thread is already in the critical section.
- ns_critsec leaves object
- Leaves the critical section. When the thread leaves the critical section as many times as it has entered, a notification will be sent to other threads that are waiting on the critical section.
EXAMPLES
# need an example here
SEE ALSO